From 2fbdf98fbc09900ecc2526e8c0aa134e43745de2 Mon Sep 17 00:00:00 2001 From: Tom Hunze Date: Sat, 12 Sep 2026 02:55:32 +0200 Subject: [PATCH] ibus: fix crashes with latest gtk GTK issue: https://gitlab.gnome.org/GNOME/gtk/-/work_items/8341 Upstream PR: https://github.com/ibus/ibus/pull/2929 --- pkgs/by-name/ib/ibus/package.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/by-name/ib/ibus/package.nix b/pkgs/by-name/ib/ibus/package.nix index b164f6ead3a7..97f2cb2b2188 100644 --- a/pkgs/by-name/ib/ibus/package.nix +++ b/pkgs/by-name/ib/ibus/package.nix @@ -3,6 +3,7 @@ stdenv, replaceVars, fetchFromGitHub, + fetchpatch, autoreconfHook, gettext, makeWrapper, @@ -88,6 +89,15 @@ stdenv.mkDerivation (finalAttrs: { PYTHON = null; }) ./build-without-dbus-launch.patch + + # Fix crashes in `gtk_im_multicontext_set_delegate` with latest GTK + # GTK issue: https://gitlab.gnome.org/GNOME/gtk/-/work_items/8341 + # Upstream PR: https://github.com/ibus/ibus/pull/2929 + (fetchpatch { + name = "fix-gtk-crashes.patch"; + url = "https://github.com/ibus/ibus/commit/c534999a9dbea2666864250d74e058ecfb46e76f.patch"; + hash = "sha256-1h48hvdrDh2Qh4+SufL147CxlfiwvP/Jv509X0WnbrA="; + }) ]; outputs = [