summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/editors/neovim
diff options
context:
space:
mode:
authorSilvan Mosberger <infinisil@icloud.com>2019-01-26 00:03:57 +0100
committerGitHub <noreply@github.com>2019-01-26 00:03:57 +0100
commitf3e03ff43876eaf033555d8db6930ee945b186d0 (patch)
tree7abf33a3737d97631874c834eb727fde82573fd3 /pkgs/applications/editors/neovim
parent5f106e8aae930c7f48a50cf20c1c92d80ca733c8 (diff)
parentb9a9f28dadfb23e99ec9f1333e969af631ce7376 (diff)
Merge pull request #54591 from symphorien/nvim-refs
neovim: remove spurious references to compilation flags
Diffstat (limited to 'pkgs/applications/editors/neovim')
-rw-r--r--pkgs/applications/editors/neovim/default.nix7
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"