1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-05 20:12:52 +00:00
nixpkgs/pkgs/development/libraries/haskell/haskell-platform/Setup.hs

11 lines
325 B
Haskell
Raw Normal View History

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
}