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";