haskell-generic-builder: rename withBenchmarkDepends argument to doBenchmark
This partially undoes the change from 8788bfe762.
The 'doBenchmark' name is more consistent with the naming scheme used for
other phases, like 'doCheck', 'doHaddock', etc.
This commit is contained in:
@@ -14,7 +14,7 @@ let isCross = (ghc.cross or null) != null; in
|
|||||||
, configureFlags ? []
|
, configureFlags ? []
|
||||||
, description ? ""
|
, description ? ""
|
||||||
, doCheck ? !isCross && (stdenv.lib.versionOlder "7.4" ghc.version)
|
, doCheck ? !isCross && (stdenv.lib.versionOlder "7.4" ghc.version)
|
||||||
, withBenchmarkDepends ? false
|
, doBenchmark ? false
|
||||||
, doHoogle ? true
|
, doHoogle ? true
|
||||||
, editedCabalFile ? null
|
, editedCabalFile ? null
|
||||||
, enableLibraryProfiling ? false
|
, enableLibraryProfiling ? false
|
||||||
@@ -150,7 +150,7 @@ let
|
|||||||
isSystemPkg = x: !isHaskellPkg x;
|
isSystemPkg = x: !isHaskellPkg x;
|
||||||
|
|
||||||
allPkgconfigDepends = pkgconfigDepends ++ libraryPkgconfigDepends ++ executablePkgconfigDepends ++
|
allPkgconfigDepends = pkgconfigDepends ++ libraryPkgconfigDepends ++ executablePkgconfigDepends ++
|
||||||
optionals doCheck testPkgconfigDepends ++ optionals withBenchmarkDepends benchmarkPkgconfigDepends;
|
optionals doCheck testPkgconfigDepends ++ optionals doBenchmark benchmarkPkgconfigDepends;
|
||||||
|
|
||||||
nativeBuildInputs = buildTools ++ libraryToolDepends ++ executableToolDepends ++ [ removeReferencesTo ];
|
nativeBuildInputs = buildTools ++ libraryToolDepends ++ executableToolDepends ++ [ removeReferencesTo ];
|
||||||
propagatedBuildInputs = buildDepends ++ libraryHaskellDepends ++ executableHaskellDepends;
|
propagatedBuildInputs = buildDepends ++ libraryHaskellDepends ++ executableHaskellDepends;
|
||||||
@@ -159,7 +159,7 @@ let
|
|||||||
optionals doCheck (testDepends ++ testHaskellDepends ++ testSystemDepends ++ testToolDepends) ++
|
optionals doCheck (testDepends ++ testHaskellDepends ++ testSystemDepends ++ testToolDepends) ++
|
||||||
# ghcjs's hsc2hs calls out to the native hsc2hs
|
# ghcjs's hsc2hs calls out to the native hsc2hs
|
||||||
optional isGhcjs nativeGhc ++
|
optional isGhcjs nativeGhc ++
|
||||||
optionals withBenchmarkDepends (benchmarkDepends ++ benchmarkHaskellDepends ++ benchmarkSystemDepends ++ benchmarkToolDepends);
|
optionals doBenchmark (benchmarkDepends ++ benchmarkHaskellDepends ++ benchmarkSystemDepends ++ benchmarkToolDepends);
|
||||||
allBuildInputs = propagatedBuildInputs ++ otherBuildInputs;
|
allBuildInputs = propagatedBuildInputs ++ otherBuildInputs;
|
||||||
|
|
||||||
haskellBuildInputs = stdenv.lib.filter isHaskellPkg allBuildInputs;
|
haskellBuildInputs = stdenv.lib.filter isHaskellPkg allBuildInputs;
|
||||||
@@ -401,7 +401,7 @@ stdenv.mkDerivation ({
|
|||||||
// optionalAttrs (preBuild != "") { inherit preBuild; }
|
// optionalAttrs (preBuild != "") { inherit preBuild; }
|
||||||
// optionalAttrs (postBuild != "") { inherit postBuild; }
|
// optionalAttrs (postBuild != "") { inherit postBuild; }
|
||||||
// optionalAttrs (doCheck) { inherit doCheck; }
|
// optionalAttrs (doCheck) { inherit doCheck; }
|
||||||
// optionalAttrs (withBenchmarkDepends) { inherit withBenchmarkDepends; }
|
// optionalAttrs (doBenchmark) { inherit doBenchmark; }
|
||||||
// optionalAttrs (checkPhase != "") { inherit checkPhase; }
|
// optionalAttrs (checkPhase != "") { inherit checkPhase; }
|
||||||
// optionalAttrs (preCheck != "") { inherit preCheck; }
|
// optionalAttrs (preCheck != "") { inherit preCheck; }
|
||||||
// optionalAttrs (postCheck != "") { inherit postCheck; }
|
// optionalAttrs (postCheck != "") { inherit postCheck; }
|
||||||
|
|||||||
Reference in New Issue
Block a user