Skip to content

Commit 476181f

Browse files
committed
Try uniqueWithName
1 parent acf4326 commit 476181f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

builder/ghc-for-component-wrapper.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
let
2020
ghc = if enableDWARF then defaults.ghc.dwarf else defaults.ghc;
2121

22+
uniqueWithName = list:
23+
lib.concatMap lib.unique (
24+
builtins.attrValues (
25+
builtins.groupBy (x: if __typeOf x == "set" then x.name or "noname" else "notset") list));
26+
2227
inherit (configFiles) targetPrefix ghcCommand ghcCommandCaps packageCfgDir;
2328
libDir = "$wrappedGhc/${configFiles.libDir}";
2429
docDir = "$wrappedGhc/share/doc/ghc/html";
@@ -154,7 +159,7 @@ let
154159
inherit script targetPrefix;
155160
inherit (ghc) version meta;
156161
};
157-
# propagatedBuildInputs = configFiles.libDeps;
162+
propagatedBuildInputs = uniqueWithName configFiles.libDeps;
158163
nativeBuildInputs = [ghc];
159164
} (''
160165
mkdir -p $out/configFiles

0 commit comments

Comments
 (0)