mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-29 07:32:58 +00:00
nodePackages: regen only node-env
This commit is contained in:
parent
b85c1e319e
commit
0835e5a189
@ -530,12 +530,15 @@ let
|
|||||||
then
|
then
|
||||||
ln -s $out/lib/node_modules/.bin $out/bin
|
ln -s $out/lib/node_modules/.bin $out/bin
|
||||||
|
|
||||||
# Patch the shebang lines of all the executables
|
# Fixup all executables
|
||||||
ls $out/bin/* | while read i
|
ls $out/bin/* | while read i
|
||||||
do
|
do
|
||||||
file="$(readlink -f "$i")"
|
file="$(readlink -f "$i")"
|
||||||
chmod u+rwx "$file"
|
chmod u+rwx "$file"
|
||||||
patchShebangs "$file"
|
if isScript "$file"
|
||||||
|
then
|
||||||
|
sed -i 's/\r$//' "$file" # convert crlf to lf
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user