diff options
author | Silvan Mosberger <infinisil@icloud.com> | 2019-01-26 00:03:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-26 00:03:57 +0100 |
commit | f3e03ff43876eaf033555d8db6930ee945b186d0 (patch) | |
tree | 7abf33a3737d97631874c834eb727fde82573fd3 /pkgs/applications/editors | |
parent | 5f106e8aae930c7f48a50cf20c1c92d80ca733c8 (diff) | |
parent | b9a9f28dadfb23e99ec9f1333e969af631ce7376 (diff) | |
download | nixlib-f3e03ff43876eaf033555d8db6930ee945b186d0.tar nixlib-f3e03ff43876eaf033555d8db6930ee945b186d0.tar.gz nixlib-f3e03ff43876eaf033555d8db6930ee945b186d0.tar.bz2 nixlib-f3e03ff43876eaf033555d8db6930ee945b186d0.tar.lz nixlib-f3e03ff43876eaf033555d8db6930ee945b186d0.tar.xz nixlib-f3e03ff43876eaf033555d8db6930ee945b186d0.tar.zst nixlib-f3e03ff43876eaf033555d8db6930ee945b186d0.zip |
Merge pull request #54591 from symphorien/nvim-refs
neovim: remove spurious references to compilation flags
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r-- | pkgs/applications/editors/neovim/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/applications/editors/neovim/default.nix b/pkgs/applications/editors/neovim/default.nix index 27e274326470..d7932dc4dcfc 100644 --- a/pkgs/applications/editors/neovim/default.nix +++ b/pkgs/applications/editors/neovim/default.nix @@ -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" |