diff --git a/pkgs/development/web/nodejs/build-node-package.nix b/pkgs/development/web/nodejs/build-node-package.nix index 27e114ee40bc..5c080ee315a8 100644 --- a/pkgs/development/web/nodejs/build-node-package.nix +++ b/pkgs/development/web/nodejs/build-node-package.nix @@ -41,7 +41,7 @@ stdenv.mkDerivation ({ rm -fR $out/lib/node_modules/${requireName}/node_modules mv node_modules $out/lib/node_modules/${requireName} if [ -d "$out/lib/node_modules/.bin" ]; then - ln -sv node_modules/.bin $out/bin + ln -sv $out/lib/node_modules/.bin $out/bin node=`type -p node` coffee=`type -p coffee || true` find -L $out/lib/node_modules/.bin/* -type f -print0 | \