8fdb3c9e63
svn path=/nixpkgs/trunk/; revision=28163
10 lines
325 B
Haskell
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
|
|
}
|