From 25ce27b45e219ca8e13e5737a5d5b175ac7548fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Val=C3=A9rian=20Galliat?= Date: Sat, 7 Feb 2015 15:04:35 +0100 Subject: [PATCH] Patch npm packages to ignore npm requirements Some npm packages strictly require a specific npm version because npm don't handle some version requirements the same way in 1.0 and 2.0. However, Nix don't use npm for dependency resolution (this is always achieved with npm 1.0 criteria by npm2nix), so these requirements turns out to be pointless and just crashes some package installations. This patch removes npm requirements so the packages can still be built. This solves #5787. --- pkgs/development/web/nodejs/build-node-package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/web/nodejs/build-node-package.nix b/pkgs/development/web/nodejs/build-node-package.nix index af997f19e8d..e385c0d40c4 100644 --- a/pkgs/development/web/nodejs/build-node-package.nix +++ b/pkgs/development/web/nodejs/build-node-package.nix @@ -83,6 +83,9 @@ let # Some version specifiers (latest, unstable, URLs, file paths) force NPM # to make remote connections or consult paths outside the Nix store. # The following JavaScript replaces these by * to prevent that: + # Also some packages require a specific npm version because npm may + # resovle dependencies differently, but npm is not used by Nix for dependency + # reslution, so these requirements are dropped. ( cat <