From c55b22cb732fc20170f640342ceccfedc63feb91 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 29 Mar 2026 22:42:08 +0000 Subject: [PATCH] luaPackages.neotest: fetch patch to fix neovim 0.12 compatibility https://github.com/nvim-neotest/neotest/pull/594 --- pkgs/development/lua-modules/overrides.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) 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