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