haskell-generic-builder: propagate build inputs only if we're building a library
This commit is contained in:
parent
f639d6bb09
commit
b31082d246
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue