Merge pull request #23235 from expipiplus1/haskell-bench
haskell-packages: Add minimal benchDepends support
This commit is contained in:
commit
14b6f2a837
@ -13,6 +13,7 @@
|
|||||||
, configureFlags ? []
|
, configureFlags ? []
|
||||||
, description ? ""
|
, description ? ""
|
||||||
, doCheck ? !isCross && (stdenv.lib.versionOlder "7.4" ghc.version)
|
, doCheck ? !isCross && (stdenv.lib.versionOlder "7.4" ghc.version)
|
||||||
|
, doBench ? false
|
||||||
, doHoogle ? true
|
, doHoogle ? true
|
||||||
, editedCabalFile ? null
|
, editedCabalFile ? null
|
||||||
, enableLibraryProfiling ? false
|
, enableLibraryProfiling ? false
|
||||||
@ -38,6 +39,7 @@
|
|||||||
, passthru ? {}
|
, passthru ? {}
|
||||||
, pkgconfigDepends ? [], libraryPkgconfigDepends ? [], executablePkgconfigDepends ? [], testPkgconfigDepends ? []
|
, pkgconfigDepends ? [], libraryPkgconfigDepends ? [], executablePkgconfigDepends ? [], testPkgconfigDepends ? []
|
||||||
, testDepends ? [], testHaskellDepends ? [], testSystemDepends ? []
|
, testDepends ? [], testHaskellDepends ? [], testSystemDepends ? []
|
||||||
|
, benchDepends ? []
|
||||||
, testTarget ? ""
|
, testTarget ? ""
|
||||||
, broken ? false
|
, broken ? false
|
||||||
, preCompileBuildDriver ? "", postCompileBuildDriver ? ""
|
, preCompileBuildDriver ? "", postCompileBuildDriver ? ""
|
||||||
@ -145,7 +147,8 @@ let
|
|||||||
otherBuildInputs = extraLibraries ++ librarySystemDepends ++ executableSystemDepends ++ setupHaskellDepends ++
|
otherBuildInputs = extraLibraries ++ librarySystemDepends ++ executableSystemDepends ++ setupHaskellDepends ++
|
||||||
buildTools ++ libraryToolDepends ++ executableToolDepends ++
|
buildTools ++ libraryToolDepends ++ executableToolDepends ++
|
||||||
optionals (allPkgconfigDepends != []) ([pkgconfig] ++ allPkgconfigDepends) ++
|
optionals (allPkgconfigDepends != []) ([pkgconfig] ++ allPkgconfigDepends) ++
|
||||||
optionals doCheck (testDepends ++ testHaskellDepends ++ testSystemDepends ++ testToolDepends);
|
optionals doCheck (testDepends ++ testHaskellDepends ++ testSystemDepends ++ testToolDepends) ++
|
||||||
|
optionals doBench benchDepends;
|
||||||
allBuildInputs = propagatedBuildInputs ++ otherBuildInputs;
|
allBuildInputs = propagatedBuildInputs ++ otherBuildInputs;
|
||||||
|
|
||||||
haskellBuildInputs = stdenv.lib.filter isHaskellPkg allBuildInputs;
|
haskellBuildInputs = stdenv.lib.filter isHaskellPkg allBuildInputs;
|
||||||
@ -341,6 +344,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 (doBench) { inherit doBench; }
|
||||||
// optionalAttrs (checkPhase != "") { inherit checkPhase; }
|
// optionalAttrs (checkPhase != "") { inherit checkPhase; }
|
||||||
// optionalAttrs (preCheck != "") { inherit preCheck; }
|
// optionalAttrs (preCheck != "") { inherit preCheck; }
|
||||||
// optionalAttrs (postCheck != "") { inherit postCheck; }
|
// optionalAttrs (postCheck != "") { inherit postCheck; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user