diff --git a/lib/lists.nix b/lib/lists.nix index 2dda700bef3..540f8c40760 100644 --- a/lib/lists.nix +++ b/lib/lists.nix @@ -236,6 +236,6 @@ rec { # Intersects list 'e' and another list intersect = e: filter (x: elem x e); - # Substracts list 'e' from another list - substract = e: filter (x: !(elem x e)); + # Subtracts list 'e' from another list + subtract = 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 663864109e8..36f80c635b7 100644 --- a/pkgs/development/web/nodejs/build-node-package.nix +++ b/pkgs/development/web/nodejs/build-node-package.nix @@ -67,7 +67,7 @@ let if filterPlatforms == [] then platforms else if hasPrefix "!" entry then - substract (intersect filterPlatforms nodejs.meta.platforms) platforms + subtract (intersect filterPlatforms nodejs.meta.platforms) platforms else platforms ++ (intersect filterPlatforms nodejs.meta.platforms) ) [] os;