diff options
author | Peter Simons <simons@cryp.to> | 2013-12-16 21:21:31 +0100 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2013-12-16 21:21:31 +0100 |
commit | f0ebdd42968f81cff4e156ff3f3cc4692a6ec8ee (patch) | |
tree | 57967e664293d7d9ae18aea1bc78c443c7b0d7e3 /pkgs/build-support | |
parent | 8b11fb8fcbb6d03680edfaaef32463693bcb04b9 (diff) |
pkgs/build-support/cabal: add 'buildTarget' attribute to allow passing flags to "./Setup build"
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/cabal/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/build-support/cabal/default.nix b/pkgs/build-support/cabal/default.nix index 8984feac167b5..cfa6175744f5f 100644 --- a/pkgs/build-support/cabal/default.nix +++ b/pkgs/build-support/cabal/default.nix @@ -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 |