summaryrefslogtreecommitdiffstats
path: root/lib/haskell.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-12-27 22:55:20 +0100
committerlassulus <lassulus@lassul.us>2022-12-27 22:55:20 +0100
commitd34de27336482775a9c9ba45097a00eb1b00770e (patch)
tree1e072f32909dac416ab46aaeaa3bc9502dbed6b5 /lib/haskell.nix
parentce2ec4448079b39842a740a2d40249e2498df012 (diff)
parent02751cb50d2791be12476db14554a2093a52b6a0 (diff)
Merge remote-tracking branch 'ni/master'
Diffstat (limited to 'lib/haskell.nix')
-rw-r--r--lib/haskell.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/haskell.nix b/lib/haskell.nix
index 4f0ee05ab..f87cfa761 100644
--- a/lib/haskell.nix
+++ b/lib/haskell.nix
@@ -39,7 +39,12 @@ rec {
in
if parse == null then
(pkgs.writeText name s).overrideAttrs (old: {
- dependencies = old.dependencies or [] ++ dependencies;
+ dependencies =
+ lib.uniq
+ (lib.sort (lib.on lib.lessThan (lib.getAttr "name"))
+ (filter
+ (lib.ne null)
+ (old.dependencies or [] ++ dependencies)));
})
else