about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2018-06-25 15:03:59 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2018-07-09 12:30:18 -0400
commit0299641c91f55a9d1687a4e1e6e9c6759187caeb (patch)
treeaf49132a9065de4b962f7380d47f268c05acf37e /pkgs
parentcf72af3d99b7f215e042f9e2ac9c91bdd3a66675 (diff)
downloadnixlib-0299641c91f55a9d1687a4e1e6e9c6759187caeb.tar
nixlib-0299641c91f55a9d1687a4e1e6e9c6759187caeb.tar.gz
nixlib-0299641c91f55a9d1687a4e1e6e9c6759187caeb.tar.bz2
nixlib-0299641c91f55a9d1687a4e1e6e9c6759187caeb.tar.lz
nixlib-0299641c91f55a9d1687a4e1e6e9c6759187caeb.tar.xz
nixlib-0299641c91f55a9d1687a4e1e6e9c6759187caeb.tar.zst
nixlib-0299641c91f55a9d1687a4e1e6e9c6759187caeb.zip
haskell generic-builder: Make test and benchmark tool depends `nativeBuildInputs`
This was reverted in 6e07a3a19a56b27446fb78b3213ea1d6534d1c99 with the
other commits in the PR, as the number of overrides added in that PR was deemed
excessive. But this commit adds no overrides, and is valuable on its
own, so I am adding it back.

(cherry picked from commit 359e0ce4bb084a07a39fa369a0121a2f997548a3)
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/haskell-modules/generic-builder.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix
index 9ac88dca83e3..d1304c796949 100644
--- a/pkgs/development/haskell-modules/generic-builder.nix
+++ b/pkgs/development/haskell-modules/generic-builder.nix
@@ -182,12 +182,14 @@ let
   depsBuildBuild = [ nativeGhc ];
   nativeBuildInputs = [ ghc removeReferencesTo ] ++ optional (allPkgconfigDepends != []) pkgconfig ++
                       setupHaskellDepends ++
-                      buildTools ++ libraryToolDepends ++ executableToolDepends;
+                      buildTools ++ libraryToolDepends ++ executableToolDepends ++
+                      optionals doCheck testToolDepends ++
+                      optionals doBenchmark benchmarkToolDepends;
   propagatedBuildInputs = buildDepends ++ libraryHaskellDepends ++ executableHaskellDepends ++ libraryFrameworkDepends;
   otherBuildInputs = extraLibraries ++ librarySystemDepends ++ executableSystemDepends ++ executableFrameworkDepends ++
                      allPkgconfigDepends ++
-                     optionals doCheck (testDepends ++ testHaskellDepends ++ testSystemDepends ++ testToolDepends ++ testFrameworkDepends) ++
-                     optionals doBenchmark (benchmarkDepends ++ benchmarkHaskellDepends ++ benchmarkSystemDepends ++ benchmarkToolDepends ++ benchmarkFrameworkDepends);
+                     optionals doCheck (testDepends ++ testHaskellDepends ++ testSystemDepends ++ testFrameworkDepends) ++
+                     optionals doBenchmark (benchmarkDepends ++ benchmarkHaskellDepends ++ benchmarkSystemDepends ++ benchmarkFrameworkDepends);
 
   allBuildInputs = propagatedBuildInputs ++ otherBuildInputs;