Skip to content

Commit acb0eb0

Browse files
committed
Only propagate inputs to library components
1 parent 557bebc commit acb0eb0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

builder/comp-builder.nix

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,11 +371,15 @@ let
371371
# Not sure why pkgconfig needs to be propagatedBuildInputs but
372372
# for gi-gtk-hs it seems to help.
373373
++ builtins.concatLists pkgconfig
374-
++ configFiles.libDeps
374+
# These only need to be propagated for library components (otherwise they
375+
# will be in `buildInputs`)
376+
++ lib.optionals (haskellLib.isLibrary componentId) configFiles.libDeps
375377
++ lib.optionals (stdenv.hostPlatform.isWindows)
376378
(lib.flatten component.libs);
377379

378-
buildInputs = lib.optionals (!stdenv.hostPlatform.isWindows)
380+
buildInputs =
381+
lib.optionals (!haskellLib.isLibrary componentId) configFiles.libDeps
382+
++ lib.optionals (!stdenv.hostPlatform.isWindows)
379383
(lib.flatten component.libs);
380384

381385
nativeBuildInputs =

0 commit comments

Comments
 (0)