From 193892ebb1d45a4b484d7bfb0efeb6883ddeb2d2 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 (cherry picked from commit 2fbdf98fbc09900ecc2526e8c0aa134e43745de2) --- 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 4437b30dc434..4ca3dd5608f4 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, @@ -90,6 +91,15 @@ stdenv.mkDerivation (finalAttrs: { ./build-without-dbus-launch.patch # https://github.com/NixOS/nixpkgs/issues/230290 ./vala-parallelism.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 = [