mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
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:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user