lib.haskell.substitutePkg: sort and dedup deps
This commit is contained in:
parent
efbcfce7a7
commit
02751cb50d
@ -39,7 +39,12 @@ rec {
|
|||||||
in
|
in
|
||||||
if parse == null then
|
if parse == null then
|
||||||
(pkgs.writeText name s).overrideAttrs (old: {
|
(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
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user