From 021c40c72d3d857180659ce8208e02c7ab511b84 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Sat, 13 Jul 2013 22:22:44 -0400 Subject: [PATCH] buildNodePackage: Handle bundledDependencies by nuking them Signed-off-by: Shea Levy --- pkgs/development/web/nodejs/build-node-package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/web/nodejs/build-node-package.nix b/pkgs/development/web/nodejs/build-node-package.nix index d260b2900160..8a56e3e798b9 100644 --- a/pkgs/development/web/nodejs/build-node-package.nix +++ b/pkgs/development/web/nodejs/build-node-package.nix @@ -38,6 +38,7 @@ stdenv.mkDerivation ({ mkdir -p $out/node_modules mv node_modules/${requireName} $out/node_modules mv node_modules/.bin $out/node_modules 2>/dev/null || true + rm -fR $out/node_modules/${requireName}/node_modules mv node_modules $out/node_modules/${requireName} if [ -d "$out/node_modules/.bin" ]; then ln -sv node_modules/.bin $out/bin