lib.haskell.substitutePkg: sort and dedup deps
This commit is contained in:
parent
efbcfce7a7
commit
02751cb50d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user