Skip to content

Commit b197a5a

Browse files
committed
Include pre-existing, libs, pkgconfig and frameworks for shell
1 parent ab35f48 commit b197a5a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

builder/shell-for.nix

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,10 @@ let
114114
# Set up a "dummy" component to use with ghcForComponent.
115115
component = {
116116
depends = packageInputs;
117-
libs = [];
118-
pkgconfig = [];
119-
frameworks = [];
117+
pre-existing = lib.concatMap (x: (haskellLib.dependToLib x).config.pre-existing or []) packageInputs;
118+
libs = lib.concatMap (x: (haskellLib.dependToLib x).config.libs or []) packageInputs;
119+
pkgconfig = lib.concatMap (x: (haskellLib.dependToLib x).config.pkgconfig or []) packageInputs;
120+
frameworks = lib.concatMap (x: (haskellLib.dependToLib x).config.frameworks or []) packageInputs;
120121
doExactConfig = false;
121122
};
122123
configFiles = makeConfigFiles {

0 commit comments

Comments
 (0)