From 7eb04a13ccd39fa483aa824817f65a3890e9e473 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Sat, 22 Mar 2025 21:37:02 +0800 Subject: [PATCH] mate.mate-sensors-applet: Backport crash fix for glib 2.83.2 https://bugzilla.redhat.com/show_bug.cgi?id=2326719#c17 --- pkgs/desktops/mate/mate-sensors-applet/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/desktops/mate/mate-sensors-applet/default.nix b/pkgs/desktops/mate/mate-sensors-applet/default.nix index e6de3cd6f006..ee3a6fe51cee 100644 --- a/pkgs/desktops/mate/mate-sensors-applet/default.nix +++ b/pkgs/desktops/mate/mate-sensors-applet/default.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchurl, + fetchpatch, pkg-config, gettext, itstool, @@ -25,6 +26,15 @@ stdenv.mkDerivation rec { sha256 = "1GU2ZoKvj+uGGCg8l4notw22/RfKj6lQrG9xAQIxWoE="; }; + patches = [ + # Fix an invalid pointer crash with glib 2.83.2 + # https://github.com/mate-desktop/mate-sensors-applet/pull/137 + (fetchpatch { + url = "https://github.com/mate-desktop/mate-sensors-applet/commit/9b74dc16d852a40d37f7ce6c236406959fd013e5.patch"; + hash = "sha256-PjMc2uEFMljaiKOM5lf6MsdWztZkMfb2Vuxs9tgdaos="; + }) + ]; + nativeBuildInputs = [ pkg-config gettext