core: fix overlay to merge package sets
This commit is contained in:
parent
6cd420d7af
commit
c84fae413b
16
overlay.nix
16
overlay.nix
@ -10,9 +10,19 @@ let
|
|||||||
nameValuePair = n: v: { name = n; value = v; };
|
nameValuePair = n: v: { name = n; value = v; };
|
||||||
nurAttrs = import ./default.nix { pkgs = super; };
|
nurAttrs = import ./default.nix { pkgs = super; };
|
||||||
|
|
||||||
in
|
overlay =
|
||||||
|
|
||||||
builtins.listToAttrs
|
builtins.listToAttrs
|
||||||
(map (n: nameValuePair n nurAttrs.${n})
|
(map (n: nameValuePair n nurAttrs.${n})
|
||||||
(builtins.filter (n: !isReserved n)
|
(builtins.filter (n: !isReserved n)
|
||||||
(builtins.attrNames nurAttrs)))
|
(builtins.attrNames nurAttrs)));
|
||||||
|
|
||||||
|
in
|
||||||
|
|
||||||
|
# Shadow existing package sets if they already exist rather than replacing.
|
||||||
|
overlay //
|
||||||
|
{
|
||||||
|
goModules = (super.goModules or { }) // (overlay.goModules or { });
|
||||||
|
jetbrains = (super.jetbrains or { }) // (overlay.jetbrains or { });
|
||||||
|
python2Packages = (super.python2Packages or { }) // (overlay.python2Packages or { });
|
||||||
|
python3Packages = (super.python3Packages or { }) // (overlay.python3Packages or { });
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user