diff --git a/pkgs/applications/editors/emacs/make-emacs.nix b/pkgs/applications/editors/emacs/make-emacs.nix index 48474bc4b7cd..c4373316be26 100644 --- a/pkgs/applications/editors/emacs/make-emacs.nix +++ b/pkgs/applications/editors/emacs/make-emacs.nix @@ -252,13 +252,10 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ makeWrapper pkg-config - ] - ++ lib.optionals (variant == "macport") [ texinfo ] ++ lib.optionals srcRepo [ autoreconfHook - texinfo ] ++ lib.optionals (withPgtk || withX && (withGTK3 || withXwidgets)) [ wrapGAppsHook3 ]; diff --git a/pkgs/applications/editors/emacs/sources.nix b/pkgs/applications/editors/emacs/sources.nix index 47af77ac4703..becbd58af1e9 100644 --- a/pkgs/applications/editors/emacs/sources.nix +++ b/pkgs/applications/editors/emacs/sources.nix @@ -121,9 +121,16 @@ in name = "inhibit-lexical-cookie-warning-67916.patch"; path = ./inhibit-lexical-cookie-warning-67916-30.patch; }) - # tree-sitter 0.26 compatibility fix, from FreeBSD - # https://cgit.freebsd.org/ports/plain/editors/emacs/files/patch-src_treesit.c - ./tree-sitter-0.26.patch + (fetchpatch { + # tree-sitter 0.26 compatibility fix, see https://bugs.gentoo.org/970856 + url = "https://gitweb.gentoo.org/proj/emacs-patches.git/plain/emacs/30.2/01_all_treesit-0.26.patch?id=d0f47979806d9be5a190fdb4ffa1bde439b2d616"; + hash = "sha256-3pWeRxjAhr3ntBR3xDhoDUZDjU6xICU23NUpb/Vl6R4="; + }) + (fetchpatch { + # tree-sitter 0.26 compatibility fix, see https://bugs.gentoo.org/971731 + url = "https://gitweb.gentoo.org/proj/emacs-patches.git/plain/emacs/30.2/02_all_ts-query-pred.patch?id=86190bf195b3e17108372d8ad89eb57037180dd2"; + hash = "sha256-0GPyfKLSaB09a8hamrSf6lx4Qk8Big4AKMOivkN1wEM="; + }) ]; }); diff --git a/pkgs/applications/editors/emacs/tree-sitter-0.26.patch b/pkgs/applications/editors/emacs/tree-sitter-0.26.patch deleted file mode 100644 index fe3b9ee8db3b..000000000000 --- a/pkgs/applications/editors/emacs/tree-sitter-0.26.patch +++ /dev/null @@ -1,56 +0,0 @@ ---- a/src/treesit.c -+++ b/src/treesit.c -@@ -34,7 +34,7 @@ along with GNU Emacs. If not, see