pkgs: fix infinite recursion when evaluating nix-build -A MY_PKG
This commit is contained in:
parent
079f945f38
commit
f148e5a580
|
@ -175,7 +175,7 @@ let
|
|||
sane = lib.recurseIntoAttrs (sane-additional // sane-patched);
|
||||
}
|
||||
# patched packages always override anything:
|
||||
// (lib.mapAttrs (pname: _pkg: final'.sane."${pname}") sane-patched)
|
||||
// sane-patched
|
||||
# "additional" packages only get added if their version is newer than upstream
|
||||
// (lib.mapAttrs
|
||||
(pname: _pkg: if unpatched ? "${pname}" && unpatched."${pname}" ? version && lib.versionAtLeast unpatched."${pname}".version final'.sane."${pname}".version then
|
||||
|
|
Loading…
Reference in New Issue
Block a user