luaPackages.nlua: keep the full shebang

our override erased half of the shebang, altering thoroughly nlua's
behavior (we removed the -uNONE for instance), which I noticed while
running nix nlua on another project.
This commit is contained in:
teto
2026-08-04 22:50:02 +02:00
parent 0d23c8974c
commit dda1d127c0

View File

@@ -939,8 +939,12 @@ in
# patchShebang removes the nvim in nlua's shebang so we hardcode one
postFixup = ''
sed -i -e "1 s|.*|#\!${coreutils}/bin/env -S ${neovim-unwrapped}/bin/nvim -l|" "$out/bin/nlua"
substituteInPlace "$out/bin/nlua" \
--replace-fail \
"#!/usr/bin/env -S nvim" \
"#!${coreutils}/bin/env -S ${neovim-unwrapped}/bin/nvim"
'';
dontPatchShebangs = true;
};