From 5b3534dd2e437395f2d4ea5fece149316aadd709 Mon Sep 17 00:00:00 2001 From: figsoda Date: Sat, 15 Apr 2023 13:58:35 -0400 Subject: [PATCH] neovim-unwrapped: apply patch to fix the `#gsub!` directive --- pkgs/applications/editors/neovim/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/applications/editors/neovim/default.nix b/pkgs/applications/editors/neovim/default.nix index fb850c7ca366..0e424affb043 100644 --- a/pkgs/applications/editors/neovim/default.nix +++ b/pkgs/applications/editors/neovim/default.nix @@ -49,6 +49,14 @@ in # necessary so that nix can handle `UpdateRemotePlugins` for the plugins # it installs. See https://github.com/neovim/neovim/issues/9413. ./system_rplugin_manifest.patch + + # fix bug with the gsub directive + # https://github.com/neovim/neovim/pull/23015 + (fetchpatch { + name = "use-the-correct-replacement-args-for-gsub-directive.patch"; + url = "https://github.com/neovim/neovim/commit/ccc0980f86c6ef9a86b0e5a3a691f37cea8eb776.patch"; + hash = "sha256-sZWM6M8jCL1e72H0bAc51a6FrH0mFFqTV1gGLwKT7Zo="; + }) ]; dontFixCmake = true;