Skip to content

Commit db849d3

Browse files
committedSep 19, 2017
haskell-generic-builder: rename withBenchmarkDepends argument to doBenchmark
This partially undoes the change from 8788bfe. The 'doBenchmark' name is more consistent with the naming scheme used for other phases, like 'doCheck', 'doHaddock', etc. (cherry picked from commit 33e34aa)
1 parent fb16e57 commit db849d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

Diff for: ‎pkgs/development/haskell-modules/generic-builder.nix

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ let isCross = (ghc.cross or null) != null; in
1414
, configureFlags ? []
1515
, description ? ""
1616
, doCheck ? !isCross && (stdenv.lib.versionOlder "7.4" ghc.version)
17-
, withBenchmarkDepends ? false
17+
, doBenchmark ? false
1818
, doHoogle ? true
1919
, editedCabalFile ? null
2020
, enableLibraryProfiling ? false
@@ -150,7 +150,7 @@ let
150150
isSystemPkg = x: !isHaskellPkg x;
151151

152152
allPkgconfigDepends = pkgconfigDepends ++ libraryPkgconfigDepends ++ executablePkgconfigDepends ++
153-
optionals doCheck testPkgconfigDepends ++ optionals withBenchmarkDepends benchmarkPkgconfigDepends;
153+
optionals doCheck testPkgconfigDepends ++ optionals doBenchmark benchmarkPkgconfigDepends;
154154

155155
nativeBuildInputs = buildTools ++ libraryToolDepends ++ executableToolDepends ++ [ removeReferencesTo ];
156156
propagatedBuildInputs = buildDepends ++ libraryHaskellDepends ++ executableHaskellDepends;
@@ -159,7 +159,7 @@ let
159159
optionals doCheck (testDepends ++ testHaskellDepends ++ testSystemDepends ++ testToolDepends) ++
160160
# ghcjs's hsc2hs calls out to the native hsc2hs
161161
optional isGhcjs nativeGhc ++
162-
optionals withBenchmarkDepends (benchmarkDepends ++ benchmarkHaskellDepends ++ benchmarkSystemDepends ++ benchmarkToolDepends);
162+
optionals doBenchmark (benchmarkDepends ++ benchmarkHaskellDepends ++ benchmarkSystemDepends ++ benchmarkToolDepends);
163163
allBuildInputs = propagatedBuildInputs ++ otherBuildInputs;
164164

165165
haskellBuildInputs = stdenv.lib.filter isHaskellPkg allBuildInputs;
@@ -401,7 +401,7 @@ stdenv.mkDerivation ({
401401
// optionalAttrs (preBuild != "") { inherit preBuild; }
402402
// optionalAttrs (postBuild != "") { inherit postBuild; }
403403
// optionalAttrs (doCheck) { inherit doCheck; }
404-
// optionalAttrs (withBenchmarkDepends) { inherit withBenchmarkDepends; }
404+
// optionalAttrs (doBenchmark) { inherit doBenchmark; }
405405
// optionalAttrs (checkPhase != "") { inherit checkPhase; }
406406
// optionalAttrs (preCheck != "") { inherit preCheck; }
407407
// optionalAttrs (postCheck != "") { inherit postCheck; }

0 commit comments

Comments
 (0)
Please sign in to comment.