From 48c857b95edae1be1fe923edc51534790f7bb7ff Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Wed, 30 Jul 2025 21:44:59 +0800 Subject: [PATCH] pantheon.granite7: Backport Gtk.init fix Same as https://gitlab.gnome.org/GNOME/gnome-initial-setup/-/issues/223. --- pkgs/desktops/pantheon/libraries/granite/7/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/desktops/pantheon/libraries/granite/7/default.nix b/pkgs/desktops/pantheon/libraries/granite/7/default.nix index a099d23c771d..46cc6820853b 100644 --- a/pkgs/desktops/pantheon/libraries/granite/7/default.nix +++ b/pkgs/desktops/pantheon/libraries/granite/7/default.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch, nix-update-script, meson, ninja, @@ -33,6 +34,15 @@ stdenv.mkDerivation rec { sha256 = "sha256-bv2rOq16xg9lCWfcLzAFN4LjBTJBxPhXvEJzutkdYzs="; }; + patches = [ + # Init: Avoid crash with Gtk >= 4.17 + # https://github.com/elementary/granite/pull/893 + (fetchpatch { + url = "https://github.com/elementary/granite/commit/60cb8c4119b579592e6c7f3b1476e4d729f58699.patch"; + hash = "sha256-6NB/Tu3mdmiBd77SOi4twdY/HidyhMn7mNN+54iFLIc="; + }) + ]; + nativeBuildInputs = [ gettext gobject-introspection