diff --git a/pkgs/development/lua-modules/overrides.nix b/pkgs/development/lua-modules/overrides.nix index 37530b0b0ad2..c8c1af23f3e0 100644 --- a/pkgs/development/lua-modules/overrides.nix +++ b/pkgs/development/lua-modules/overrides.nix @@ -854,6 +854,16 @@ in }; neotest = prev.neotest.overrideAttrs (old: { + patches = [ + (fetchpatch { + # fix compatibility with neovim 0.12: iter_matches breaking change + # https://github.com/nvim-neotest/neotest/pull/594 + name = "fix-neovim-0-12-compat"; + url = "https://github.com/LiamCoop/neotest/commit/2ffca3aefb070e31f1ac00e9fbfd1a83f995c326.patch"; + hash = "sha256-3+ooC3ZB8pl90FG+kTZxIzmPxrdJTx/XNYE2tPDWO+w="; + }) + ]; + doCheck = stdenv.hostPlatform.isLinux; nativeCheckInputs = old.nativeCheckInputs ++ [ final.nlua