Skip to content

Commit 24976f3

Browse files
committed
1 parent b573a7f commit 24976f3

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

pkgs/applications/window-managers/openbox/default.nix

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, python3
1+
{ lib, stdenv, fetchurl, fetchpatch, autoreconfHook, pkg-config, python3
22
, libxml2, libXinerama, libXcursor, libXau, libXrandr, libICE, libSM
33
, imlib2, pango, libstartup_notification, makeWrapper }:
44

@@ -45,6 +45,13 @@ stdenv.mkDerivation rec {
4545
url = "https://raw.githubusercontent.com/archlinux/svntogit-community/90cb57ef53d952bb6ab4c33a184f815bbe1791c0/openbox/trunk/py3.patch";
4646
sha256 = "1ks99awlkhd5ph9kz94s1r6m1bfvh42g4rmxd14dyg5b421p1ljc";
4747
})
48+
49+
# Fix crash with GLib 2.76. This is proposed on https://bugzilla.icculus.org/show_bug.cgi?id=6669
50+
# and commited to a work branch in the upstream repo. See https://bugs.archlinux.org/task/77853.
51+
(fetchpatch {
52+
url = "https://github.com/Mikachu/openbox/commit/d41128e5a1002af41c976c8860f8299cfcd3cd72.patch";
53+
sha256 = "sha256-4/aoI4y98JPybZ1MNI7egOhkroQgh/oeGnYrhNGX4t4=";
54+
})
4855
];
4956

5057
postBuild = "gcc -O2 -o setlayout $(pkg-config --cflags --libs x11) $setlayoutSrc";

0 commit comments

Comments
 (0)