You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
485 B
Nix
16 lines
485 B
Nix
1 year ago
|
# You can use this file as a nixpkgs overlay. This is useful in the
|
||
|
# case where you don't want to add the whole NUR namespace to your
|
||
|
# configuration.
|
||
|
|
||
|
self: super:
|
||
|
let
|
||
|
isReserved = n: n == "lib" || n == "overlays" || n == "modules";
|
||
|
nameValuePair = n: v: { name = n; value = v; };
|
||
|
nurAttrs = import ./default.nix { pkgs = super; };
|
||
|
|
||
|
in
|
||
|
builtins.listToAttrs
|
||
|
(map (n: nameValuePair n nurAttrs.${n})
|
||
|
(builtins.filter (n: !isReserved n)
|
||
|
(builtins.attrNames nurAttrs)))
|