diff --git a/lib/lists.nix b/lib/lists.nix index 540f8c40760f..fa8cbddfd943 100644 --- a/lib/lists.nix +++ b/lib/lists.nix @@ -234,8 +234,8 @@ rec { in [x] ++ remove x xs; # Intersects list 'e' and another list - intersect = e: filter (x: elem x e); + intersectLists = e: filter (x: elem x e); # Subtracts list 'e' from another list - subtract = e: filter (x: !(elem x e)); + subtractLists = e: filter (x: !(elem x e)); } diff --git a/pkgs/development/web/nodejs/build-node-package.nix b/pkgs/development/web/nodejs/build-node-package.nix index 36f80c635b78..042e29f29705 100644 --- a/pkgs/development/web/nodejs/build-node-package.nix +++ b/pkgs/development/web/nodejs/build-node-package.nix @@ -67,9 +67,9 @@ let if filterPlatforms == [] then platforms else if hasPrefix "!" entry then - subtract (intersect filterPlatforms nodejs.meta.platforms) platforms + subtractLists (intersectLists filterPlatforms nodejs.meta.platforms) platforms else - platforms ++ (intersect filterPlatforms nodejs.meta.platforms) + platforms ++ (intersectLists filterPlatforms nodejs.meta.platforms) ) [] os; mapDependencies = deps: f: rec {