about summary refs log tree commit diff
path: root/pkgs/applications/editors
diff options
context:
space:
mode:
authorSymphorien Gibol <symphorien+git@xlumurb.eu>2019-01-25 22:20:12 +0100
committerSymphorien Gibol <symphorien+git@xlumurb.eu>2019-01-25 22:20:12 +0100
commitb9a9f28dadfb23e99ec9f1333e969af631ce7376 (patch)
treec1883d75374e032566edb4d51f95b387188945f8 /pkgs/applications/editors
parentbc41317e24317b0f506287f2d5bab00140b9b50e (diff)
downloadnixlib-b9a9f28dadfb23e99ec9f1333e969af631ce7376.tar
nixlib-b9a9f28dadfb23e99ec9f1333e969af631ce7376.tar.gz
nixlib-b9a9f28dadfb23e99ec9f1333e969af631ce7376.tar.bz2
nixlib-b9a9f28dadfb23e99ec9f1333e969af631ce7376.tar.lz
nixlib-b9a9f28dadfb23e99ec9f1333e969af631ce7376.tar.xz
nixlib-b9a9f28dadfb23e99ec9f1333e969af631ce7376.tar.zst
nixlib-b9a9f28dadfb23e99ec9f1333e969af631ce7376.zip
neovim: remove spurious references to compilation flags
Diffstat (limited to 'pkgs/applications/editors')
-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 a3580b1afa7a..2cd1b277377a 100644
--- a/pkgs/applications/editors/neovim/default.nix
+++ b/pkgs/applications/editors/neovim/default.nix
@@ -46,6 +46,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"