diff options
author | OPNA2608 <opna2608@protonmail.com> | 2024-05-23 19:55:35 +0200 |
---|---|---|
committer | OPNA2608 <opna2608@protonmail.com> | 2024-05-23 19:56:09 +0200 |
commit | 35f36cd087e6e6ab119407351f034e83159626ee (patch) | |
tree | f438baf67fdf89b008e066f1d73daa3119f13367 /pkgs/development/libraries/glib | |
parent | 64ea1c0661f1ff7d311024d00fee9183d9de1458 (diff) |
glib: Apply fix for memory issues
See https://gitlab.gnome.org/GNOME/glib/-/merge_requests/4073 and related upstream issues for details.
Diffstat (limited to 'pkgs/development/libraries/glib')
-rw-r--r-- | pkgs/development/libraries/glib/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/development/libraries/glib/default.nix b/pkgs/development/libraries/glib/default.nix index feef4630afd8c..e9bef56970849 100644 --- a/pkgs/development/libraries/glib/default.nix +++ b/pkgs/development/libraries/glib/default.nix @@ -2,6 +2,7 @@ , lib , stdenv , fetchurl +, fetchpatch , gettext , meson , ninja @@ -73,6 +74,15 @@ stdenv.mkDerivation (finalAttrs: { ./quark_init_on_demand.patch ./gobject_init_on_demand.patch ] ++ [ + # Fix double-free & segfault issues on menu and dbus connection action group export failures + # https://gitlab.gnome.org/GNOME/glib/-/merge_requests/4073 + # Remove when version > 2.80.2 + (fetchpatch { + name = "GLib-Fix-memory-problems-on-gmenuexporter-and-gactiongroupexporter-error-paths.patch"; + url = "https://gitlab.gnome.org/GNOME/glib/-/commit/b9490a499a004618c883f180b1081a166ff1a86b.patch"; + hash = "sha256-c6uZ9NEhg26/2RdgjQ4s5ErCDm5HH6T/tfJXTwh/H6o="; + }) + # This patch lets GLib's GDesktopAppInfo API watch and notice changes # to the Nix user and system profiles. That way, the list of available # applications shown by the desktop environment is immediately updated |