3
0
Fork 0
forked from mirrors/nixpkgs

haskell-generic-builder: propagate build inputs only if we're building a library

This commit is contained in:
Peter Simons 2015-01-10 23:54:30 +01:00
parent f639d6bb09
commit b31082d246

View file

@ -88,8 +88,9 @@ stdenv.mkDerivation ({
nativeBuildInputs = extraLibraries ++ buildTools ++
optionals (pkgconfigDepends != []) ([pkgconfig] ++ pkgconfigDepends) ++
optionals doCheck testDepends;
propagatedNativeBuildInputs = buildDepends;
optionals doCheck testDepends ++
optionals (!hasActiveLibrary) buildDepends;
propagatedNativeBuildInputs = optionals hasActiveLibrary buildDepends;
# GHC needs the locale configured during the Haddock phase.
LANG = "en_US.UTF-8";