From 829479d1dda5dbb579885e16dc655716127457ed Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 4 Mar 2015 22:01:21 +0100 Subject: [PATCH] substract -> subtract --- lib/lists.nix | 4 ++-- pkgs/development/web/nodejs/build-node-package.nix | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/lists.nix b/lib/lists.nix index 2dda700bef3b..540f8c40760f 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 663864109e88..36f80c635b78 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;