mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
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 New Issue
Block a user