about summary refs log tree commit diff
path: root/pkgs/applications/window-managers/openbox
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2023-03-20 22:42:13 +0800
committerBobby Rong <rjl931189261@126.com>2023-03-20 22:43:33 +0800
commit24976f3816158497b7a137d011907fec3fb13a59 (patch)
tree3ab181f73fcf294c50f434b026aa71a2473e0356 /pkgs/applications/window-managers/openbox
parentb573a7f69484a7d213680abb70b4f95bdc28eee5 (diff)
openbox: Apply crash fix for GLib 2.76
ref: https://bugs.archlinux.org/task/77853
ref: https://bugzilla.icculus.org/show_bug.cgi?id=6669
Diffstat (limited to 'pkgs/applications/window-managers/openbox')
-rw-r--r--pkgs/applications/window-managers/openbox/default.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/applications/window-managers/openbox/default.nix b/pkgs/applications/window-managers/openbox/default.nix
index 093b6d1884c22..c5f6886c65903 100644
--- a/pkgs/applications/window-managers/openbox/default.nix
+++ b/pkgs/applications/window-managers/openbox/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, python3
+{ lib, stdenv, fetchurl, fetchpatch, autoreconfHook, pkg-config, python3
 , libxml2, libXinerama, libXcursor, libXau, libXrandr, libICE, libSM
 , imlib2, pango, libstartup_notification, makeWrapper }:
 
@@ -45,6 +45,13 @@ stdenv.mkDerivation rec {
       url = "https://raw.githubusercontent.com/archlinux/svntogit-community/90cb57ef53d952bb6ab4c33a184f815bbe1791c0/openbox/trunk/py3.patch";
       sha256 = "1ks99awlkhd5ph9kz94s1r6m1bfvh42g4rmxd14dyg5b421p1ljc";
     })
+
+    # Fix crash with GLib 2.76. This is proposed on https://bugzilla.icculus.org/show_bug.cgi?id=6669
+    # and commited to a work branch in the upstream repo. See https://bugs.archlinux.org/task/77853.
+    (fetchpatch {
+      url = "https://github.com/Mikachu/openbox/commit/d41128e5a1002af41c976c8860f8299cfcd3cd72.patch";
+      sha256 = "sha256-4/aoI4y98JPybZ1MNI7egOhkroQgh/oeGnYrhNGX4t4=";
+    })
   ];
 
   postBuild = "gcc -O2 -o setlayout $(pkg-config --cflags --libs x11) $setlayoutSrc";