lib: Add auxiliary function to deal with packages
This commit is contained in:
parent
2adf0bdd4f
commit
3f276c26af
1 changed files with 9 additions and 0 deletions
9
lib/packages.nix
Normal file
9
lib/packages.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{ nixpkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
inherit (builtins) any filter;
|
||||||
|
inherit (nixpkgs.lib.strings) getName;
|
||||||
|
in {
|
||||||
|
remove = nameList: pkgList:
|
||||||
|
filter (pkg: !any (elem: getName pkg == elem) nameList) pkgList;
|
||||||
|
}
|
Loading…
Reference in a new issue