idiosyn/lib/packages.nix

9 lines
203 B
Nix

{ nixpkgs, ... }:
let
inherit (builtins) any filter;
inherit (nixpkgs.lib.strings) getName;
in {
remove = nameList: pkgList:
filter (pkg: !any (elem: getName pkg == elem) nameList) pkgList;
}