pkgs/build-support/cabal: add 'buildTarget' attribute to allow passing flags to "./Setup build"
This commit is contained in:
parent
63c60638fc
commit
6209bb8556
@ -108,6 +108,9 @@ assert !enableStaticLibraries -> versionOlder "7.7" ghc.version;
|
|||||||
# build-depends Cabal field
|
# build-depends Cabal field
|
||||||
buildDepends = [];
|
buildDepends = [];
|
||||||
|
|
||||||
|
# target(s) passed to the cabal build phase as an argument
|
||||||
|
buildTarget = "";
|
||||||
|
|
||||||
# build-depends Cabal fields stated in test-suite stanzas
|
# build-depends Cabal fields stated in test-suite stanzas
|
||||||
testDepends = [];
|
testDepends = [];
|
||||||
|
|
||||||
@ -208,7 +211,7 @@ assert !enableStaticLibraries -> versionOlder "7.7" ghc.version;
|
|||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
eval "$preBuild"
|
eval "$preBuild"
|
||||||
|
|
||||||
./Setup build
|
./Setup build ${self.buildTarget}
|
||||||
|
|
||||||
export GHC_PACKAGE_PATH=$(${ghc.GHCPackages})
|
export GHC_PACKAGE_PATH=$(${ghc.GHCPackages})
|
||||||
test -n "$noHaddock" || ./Setup haddock
|
test -n "$noHaddock" || ./Setup haddock
|
||||||
|
Loading…
Reference in New Issue
Block a user