Merge pull request #54591 from symphorien/nvim-refs

neovim: remove spurious references to compilation flags
This commit is contained in:
Silvan Mosberger
2019-01-26 00:03:57 +01:00
committed by GitHub

View File

@@ -53,6 +53,13 @@ let
lualibs = [ luaPackages.mpack luaPackages.lpeg luaPackages.luabitop ];
# nvim --version output retains compilation flags and references to build tools
postPatch = ''
substituteInPlace src/nvim/version.c --replace NVIM_VERSION_CFLAGS "";
'';
# check that the above patching actually works
disallowedReferences = [ stdenv.cc ];
cmakeFlags = [
"-DLUA_PRG=${luaPackages.lua}/bin/lua"
"-DGPERF_PRG=${gperf}/bin/gperf"