Merge pull request #54591 from symphorien/nvim-refs
neovim: remove spurious references to compilation flags
commitf3e03ff43876eaf033555d8db6930ee945b186d0
authorSilvan Mosberger <infinisil@icloud.com>
dateSat 26 Jan 2019, 00:03 (8 years ago)
parent5f106e8b9a9f28
pkgs/applications/editors/neovim/default.nix+7
@@ -53,6 +53,13 @@ let
5353
5454 lualibs = [ luaPackages.mpack luaPackages.lpeg luaPackages.luabitop ];
5555
56+ # nvim --version output retains compilation flags and references to build tools
57+ postPatch = ''
58+ substituteInPlace src/nvim/version.c --replace NVIM_VERSION_CFLAGS "";
59+ '';
60+ # check that the above patching actually works
61+ disallowedReferences = [ stdenv.cc ];
62+
5663 cmakeFlags = [
5764 "-DLUA_PRG=${luaPackages.lua}/bin/lua"
5865 "-DGPERF_PRG=${gperf}/bin/gperf"