3
0
Fork 0
forked from mirrors/nixpkgs

pkgs/build-support/cabal: add 'buildTarget' attribute to allow passing flags to "./Setup build"

This commit is contained in:
Peter Simons 2013-12-16 21:21:31 +01:00
parent 8b11fb8fcb
commit f0ebdd4296

View file

@ -107,6 +107,9 @@ assert !enableStaticLibraries -> versionOlder "7.7" ghc.version;
# build-depends Cabal field
buildDepends = [];
# target(s) passed to the cabal build phase as an argument
buildTarget = "";
# build-depends Cabal fields stated in test-suite stanzas
testDepends = [];
@ -201,7 +204,7 @@ assert !enableStaticLibraries -> versionOlder "7.7" ghc.version;
buildPhase = ''
eval "$preBuild"
./Setup build
./Setup build ${self.buildTarget}
export GHC_PACKAGE_PATH=$(${ghc.GHCPackages})
test -n "$noHaddock" || ./Setup haddock