Fix peerDependency handling in buildNodePackage

Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
Shea Levy 2013-08-30 09:02:44 -04:00
parent ce47f92b19
commit b8872549b7

View File

@ -52,7 +52,7 @@ stdenv.mkDerivation ({
fi
'') args.passthru.names)}
${concatStrings (concatMap (dep: map (name: ''
mv node_modules/${dep.name} $out/lib/node_modules
mv node_modules/${name} $out/lib/node_modules
'') dep.names) peerDependencies)}
mv node_modules/.bin $out/lib/node_modules 2>/dev/null || true
mv node_modules $out/.dependent-node-modules