luaPackages.nlua: disable patchShebangAuto

the automatic shebang patch adds a -l in the shebang which nlua picks up and aborts saying it doesn't accept -l
This commit is contained in:
teto sse 2024-04-06 03:11:56 +02:00 committed by Matthieu C.
parent 41992852aa
commit dc40530573
1 changed files with 9 additions and 1 deletions

View File

@ -480,7 +480,6 @@ in
};
});
plenary-nvim = prev.plenary-nvim.overrideAttrs (oa: {
postPatch = ''
sed -Ei lua/plenary/curl.lua \
@ -585,6 +584,15 @@ in
};
});
nlua = prev.nlua.overrideAttrs(oa: {
# 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"
'';
dontPatchShebangs = true;
});
rapidjson = prev.rapidjson.overrideAttrs (oa: {
preBuild = ''
sed -i '/set(CMAKE_CXX_FLAGS/d' CMakeLists.txt