From 1599b340db62d4b1c4c9e1e654e3aa294cc04616 Mon Sep 17 00:00:00 2001 From: Lily Foster Date: Tue, 7 Mar 2023 10:23:11 -0500 Subject: [PATCH] nodePackages: regen only node-env (cherry picked from commit 0835e5a189bf0ae676ccfd91afaf0e6c39c65b28) --- pkgs/development/node-packages/node-env.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/node-packages/node-env.nix b/pkgs/development/node-packages/node-env.nix index 5dad9ec63d47c..bc1e36628ac8a 100644 --- a/pkgs/development/node-packages/node-env.nix +++ b/pkgs/development/node-packages/node-env.nix @@ -530,12 +530,15 @@ let then 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 do file="$(readlink -f "$i")" chmod u+rwx "$file" - patchShebangs "$file" + if isScript "$file" + then + sed -i 's/\r$//' "$file" # convert crlf to lf + fi done fi