diff options
author | Symphorien Gibol <symphorien+git@xlumurb.eu> | 2019-01-25 22:20:12 +0100 |
---|---|---|
committer | Symphorien Gibol <symphorien+git@xlumurb.eu> | 2019-01-25 22:20:12 +0100 |
commit | b9a9f28dadfb23e99ec9f1333e969af631ce7376 (patch) | |
tree | c1883d75374e032566edb4d51f95b387188945f8 /pkgs/applications/editors | |
parent | bc41317e24317b0f506287f2d5bab00140b9b50e (diff) | |
download | nixlib-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.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 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" |