mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-30 03:32:05 +03:00
22 lines
605 B
Nix
22 lines
605 B
Nix
|
# 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:
|
||
|
|
||
|
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)
|
||
|
)
|
||
|
)
|
||
|
);
|
||
|
in filterSet
|
||
|
(n: !(n=="lib"||n=="overlays"||n=="modules")) # filter out non-packages
|
||
|
(p: true) # all packages are ok
|
||
|
(import ./default.nix { pkgs = super; })
|
||
|
|