forked from mirrors/nixpkgs
haskell-packages: use benchmark over bench
This commit is contained in:
parent
4ab570a6d0
commit
8788bfe762
|
@ -9,11 +9,11 @@
|
||||||
, src ? fetchurl { url = "mirror://hackage/${pname}-${version}.tar.gz"; inherit sha256; }
|
, src ? fetchurl { url = "mirror://hackage/${pname}-${version}.tar.gz"; inherit sha256; }
|
||||||
, buildDepends ? [], setupHaskellDepends ? [], libraryHaskellDepends ? [], executableHaskellDepends ? []
|
, buildDepends ? [], setupHaskellDepends ? [], libraryHaskellDepends ? [], executableHaskellDepends ? []
|
||||||
, buildTarget ? ""
|
, buildTarget ? ""
|
||||||
, buildTools ? [], libraryToolDepends ? [], executableToolDepends ? [], testToolDepends ? [], benchToolDepends ? []
|
, buildTools ? [], libraryToolDepends ? [], executableToolDepends ? [], testToolDepends ? [], benchmarkToolDepends ? []
|
||||||
, configureFlags ? []
|
, configureFlags ? []
|
||||||
, description ? ""
|
, description ? ""
|
||||||
, doCheck ? !isCross && (stdenv.lib.versionOlder "7.4" ghc.version)
|
, doCheck ? !isCross && (stdenv.lib.versionOlder "7.4" ghc.version)
|
||||||
, doBench ? false
|
, withBenchmarkDepends ? false
|
||||||
, doHoogle ? true
|
, doHoogle ? true
|
||||||
, editedCabalFile ? null
|
, editedCabalFile ? null
|
||||||
, enableLibraryProfiling ? false
|
, enableLibraryProfiling ? false
|
||||||
|
@ -37,9 +37,9 @@
|
||||||
# TODO Do we care about haddock when cross-compiling?
|
# TODO Do we care about haddock when cross-compiling?
|
||||||
, doHaddock ? !isCross && (!stdenv.isDarwin || stdenv.lib.versionAtLeast ghc.version "7.8")
|
, doHaddock ? !isCross && (!stdenv.isDarwin || stdenv.lib.versionAtLeast ghc.version "7.8")
|
||||||
, passthru ? {}
|
, passthru ? {}
|
||||||
, pkgconfigDepends ? [], libraryPkgconfigDepends ? [], executablePkgconfigDepends ? [], testPkgconfigDepends ? [], benchPkgconfigDepends ? []
|
, pkgconfigDepends ? [], libraryPkgconfigDepends ? [], executablePkgconfigDepends ? [], testPkgconfigDepends ? [], benchmarkPkgconfigDepends ? []
|
||||||
, testDepends ? [], testHaskellDepends ? [], testSystemDepends ? []
|
, testDepends ? [], testHaskellDepends ? [], testSystemDepends ? []
|
||||||
, benchDepends ? [], benchHaskellDepends ? [], benchSystemDepends ? []
|
, benchmarkDepends ? [], benchmarkHaskellDepends ? [], benchmarkSystemDepends ? []
|
||||||
, testTarget ? ""
|
, testTarget ? ""
|
||||||
, broken ? false
|
, broken ? false
|
||||||
, preCompileBuildDriver ? "", postCompileBuildDriver ? ""
|
, preCompileBuildDriver ? "", postCompileBuildDriver ? ""
|
||||||
|
@ -141,14 +141,14 @@ let
|
||||||
isSystemPkg = x: !isHaskellPkg x;
|
isSystemPkg = x: !isHaskellPkg x;
|
||||||
|
|
||||||
allPkgconfigDepends = pkgconfigDepends ++ libraryPkgconfigDepends ++ executablePkgconfigDepends ++
|
allPkgconfigDepends = pkgconfigDepends ++ libraryPkgconfigDepends ++ executablePkgconfigDepends ++
|
||||||
optionals doCheck testPkgconfigDepends ++ optionals doBench benchPkgconfigDepends;
|
optionals doCheck testPkgconfigDepends ++ optionals withBenchmarkDepends benchmarkPkgconfigDepends;
|
||||||
|
|
||||||
propagatedBuildInputs = buildDepends ++ libraryHaskellDepends ++ executableHaskellDepends;
|
propagatedBuildInputs = buildDepends ++ libraryHaskellDepends ++ executableHaskellDepends;
|
||||||
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 ++ benchHaskellDepends ++ benchSystemDepends ++ benchToolDepends);
|
optionals withBenchmarkDepends (benchmarkDepends ++ benchmarkHaskellDepends ++ benchmarkSystemDepends ++ benchmarkToolDepends);
|
||||||
allBuildInputs = propagatedBuildInputs ++ otherBuildInputs;
|
allBuildInputs = propagatedBuildInputs ++ otherBuildInputs;
|
||||||
|
|
||||||
haskellBuildInputs = stdenv.lib.filter isHaskellPkg allBuildInputs;
|
haskellBuildInputs = stdenv.lib.filter isHaskellPkg allBuildInputs;
|
||||||
|
@ -344,7 +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 (withBenchmarkDepends) { inherit withBenchmarkDepends; }
|
||||||
// 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…
Reference in a new issue