3
0
Fork 0
forked from mirrors/nixpkgs

pkgs/build-support/cabal: add 'testDepends' to 'extraBuildInputs' if 'doCheck' is set to 'true'

This commit is contained in:
Peter Simons 2013-02-25 00:31:34 +01:00
parent d8974b47cb
commit d0bfd6936e

View file

@ -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);