about summary refs log tree commit diff stats
path: root/overlay.nix
blob: bff7396a70d9bb78a88226f72f467f073eb18ef3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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)))