nixpkgs-suyu/pkgs/development/libraries/haskell/haskell-platform/Setup.hs
Andres Löh 8fdb3c9e63 Make ghc-7.0.4 the default. Add experimental ghc-7.2.1rc1.
svn path=/nixpkgs/trunk/; revision=28163
2011-08-05 08:52:35 +00:00

10 lines
325 B
Haskell

import Distribution.Simple
import Distribution.Simple.Program
main = defaultMainWithHooks simpleUserHooks { hookedPrograms = [cabal] }
cabal :: Program
cabal = (simpleProgram "cabal-install") {
programFindLocation = \x -> findProgramLocation x "cabal",
programFindVersion = findProgramVersion "--numeric-version" id
}