mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
buildNodePackage: Handle bundledDependencies by nuking them
Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
parent
da4be371e9
commit
021c40c72d
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue