2018-07-16 12:14:10 +00:00
|
|
|
# You can use this file as a nixpkgs overlay.
|
|
|
|
# It's useful in the case where you don't want to add the whole NUR namespace
|
|
|
|
# to your configuration.
|
|
|
|
|
|
|
|
self: super:
|
|
|
|
|
2019-03-23 18:03:43 +00:00
|
|
|
let
|
|
|
|
filterSet =
|
|
|
|
(f: g: s: builtins.listToAttrs
|
|
|
|
(map
|
|
|
|
(n: { name = n; value = builtins.getAttr n s; })
|
|
|
|
(builtins.filter
|
|
|
|
(n: f n && g (builtins.getAttr n s))
|
|
|
|
(builtins.attrNames s)
|
2018-07-21 13:55:00 +00:00
|
|
|
)
|
2019-03-23 18:03:43 +00:00
|
|
|
)
|
|
|
|
);
|
|
|
|
isReserved = n: builtins.elem n ["lib" "overlays" "modules"];
|
2018-07-21 13:55:00 +00:00
|
|
|
in filterSet
|
2019-03-23 18:03:43 +00:00
|
|
|
(n: !(isReserved n)) # filter out non-packages
|
2018-07-21 13:55:00 +00:00
|
|
|
(p: true) # all packages are ok
|
|
|
|
(import ./default.nix { pkgs = super; })
|
2018-07-16 12:14:10 +00:00
|
|
|
|