buildNodePackage: Handle bundledDependencies by nuking them

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy 2013-07-13 22:22:44 -04:00
parent da4be371e9
commit 021c40c72d

View File

@ -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