diff options
author | Luca Bruno <lucabru@src.gnome.org> | 2014-04-09 00:02:20 +0200 |
---|---|---|
committer | Luca Bruno <lucabru@src.gnome.org> | 2014-04-09 00:36:53 +0200 |
commit | a3115707dd1563cfdab75ae716a33aeba4c651ce (patch) | |
tree | d0aef79d8e467c8157d7c446a3baa27df6ae9aeb /lib/lists.nix | |
parent | ba200a2c3cfe1e122eec30e588f37430a50feff7 (diff) |
Add environment.gnome3.excludePackages
Give the user a full desktop, and the possibility to exclude non-base packages from the default list of packages.
Diffstat (limited to 'lib/lists.nix')
-rw-r--r-- | lib/lists.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/lists.nix b/lib/lists.nix index 71a897027962b..6c7773304defe 100644 --- a/lib/lists.nix +++ b/lib/lists.nix @@ -226,4 +226,7 @@ in rec { deepSeqList = xs: y: if any (x: deepSeq x false) xs then y else y; crossLists = f: foldl (fs: args: concatMap (f: map f args) fs) [f]; + + # List difference, xs - ys. Removes elements of ys from xs. + difference = xs: ys: filter (y: !(builtins.elem y ys)) xs; } |