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 | |
parent | 5f106e8aae930c7f48a50cf20c1c92d80ca733c8 (diff) | |
parent | b9a9f28dadfb23e99ec9f1333e969af631ce7376 (diff) | |
download | nixpkgs-f3e03ff43876eaf033555d8db6930ee945b186d0.tar nixpkgs-f3e03ff43876eaf033555d8db6930ee945b186d0.tar.gz nixpkgs-f3e03ff43876eaf033555d8db6930ee945b186d0.tar.bz2 nixpkgs-f3e03ff43876eaf033555d8db6930ee945b186d0.tar.lz nixpkgs-f3e03ff43876eaf033555d8db6930ee945b186d0.tar.xz nixpkgs-f3e03ff43876eaf033555d8db6930ee945b186d0.tar.zst nixpkgs-f3e03ff43876eaf033555d8db6930ee945b186d0.zip |
Merge pull request #54591 from symphorien/nvim-refs
neovim: remove spurious references to compilation flags
Diffstat (limited to 'pkgs')
-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 27e27432647..d7932dc4dcf 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" |