2019-03-28 22:52:37 +00:00
|
|
|
# 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.
|
2018-07-16 12:14:10 +00:00
|
|
|
|
|
|
|
self: super:
|
2019-03-23 18:03:43 +00:00
|
|
|
let
|
2019-03-28 22:52:37 +00:00
|
|
|
isReserved = n: n == "lib" || n == "overlays" || n == "modules";
|
|
|
|
nameValuePair = n: v: { name = n; value = v; };
|
|
|
|
nurAttrs = import ./default.nix { pkgs = super; };
|
|
|
|
|
|
|
|
in
|
2020-12-26 20:43:32 +00:00
|
|
|
builtins.listToAttrs
|
2019-03-28 22:52:37 +00:00
|
|
|
(map (n: nameValuePair n nurAttrs.${n})
|
2020-12-26 20:43:32 +00:00
|
|
|
(builtins.filter (n: !isReserved n)
|
|
|
|
(builtins.attrNames nurAttrs)))
|