pkgs/build-support/cabal: add 'testDepends' to 'extraBuildInputs' if 'doCheck' is set to 'true'
This commit is contained in:
parent
d8974b47cb
commit
d0bfd6936e
@ -55,6 +55,7 @@
|
||||
# but often propagatedBuildInputs is preferable anyway
|
||||
buildInputs = [ghc Cabal] ++ self.extraBuildInputs;
|
||||
extraBuildInputs = self.buildTools ++
|
||||
(stdenv.lib.optionals (self.doCheck or false) self.testDepends) ++
|
||||
(if self.pkgconfigDepends == [] then [] else [pkgconfig]) ++
|
||||
(if self.isLibrary then [] else self.buildDepends ++ self.extraLibraries ++ self.pkgconfigDepends);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user