mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
11 lines
325 B
Haskell
11 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
|
||
|
}
|