nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

overlay.nix (494B)


      1 # You can use this file as a nixpkgs overlay. This is useful in the
      2 # case where you don't want to add the whole NUR namespace to your
      3 # configuration.
      4 
      5 self: super:
      6 let
      7   isReserved = n: n == "lib" || n == "overlays" || n == "modules";
      8   nameValuePair = n: v: {
      9     name = n;
     10     value = v;
     11   };
     12   nurAttrs = import ./default.nix { pkgs = super; };
     13 in
     14 builtins.listToAttrs (
     15   map (n: nameValuePair n nurAttrs.${n}) (
     16     builtins.filter (n: !isReserved n) (builtins.attrNames nurAttrs)
     17   )
     18 )