about summary refs log tree commit diff
path: root/pkgs/desktops
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2023-03-22 08:24:24 +0800
committerGitHub <noreply@github.com>2023-03-22 08:24:24 +0800
commit3c2e5906d693fc4a18cfdb9408698f83594dbf25 (patch)
treec77043fe62dd8c17eb3502eb83308fb5319fab12 /pkgs/desktops
parent6664a6b76e36e1e93ba223797ccc162e122a804f (diff)
cinnamon.xapp: Backport a crash fix for GLib 2.76.0
ref: https://bugs.archlinux.org/task/77892
Diffstat (limited to 'pkgs/desktops')
-rw-r--r--pkgs/desktops/cinnamon/xapp/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/desktops/cinnamon/xapp/default.nix b/pkgs/desktops/cinnamon/xapp/default.nix
index 07b557d65c0db..1c4330221a66f 100644
--- a/pkgs/desktops/cinnamon/xapp/default.nix
+++ b/pkgs/desktops/cinnamon/xapp/default.nix
@@ -1,4 +1,5 @@
 { fetchFromGitHub
+, fetchpatch
 , glib
 , gobject-introspection
 , gtk3
@@ -33,6 +34,15 @@ stdenv.mkDerivation rec {
     hash = "sha256-etB+q7FIwbApTUk8RohAy3kHX8Vb4cSY/qkvhj94yTM=";
   };
 
+  patches = [
+    # xapp-sn-watcher crashes on cinnamon with glib 2.76.0
+    # https://github.com/linuxmint/xapp/issues/165
+    (fetchpatch {
+      url = "https://github.com/linuxmint/xapp/commit/3ef9861d6228c2061fbde2c0554be5ae6f42befa.patch";
+      sha256 = "sha256-7hYXA43UQpBLLjRVPoACc8xdhKyKnt3cDUBL4PhEtJY=";
+    })
+  ];
+
   nativeBuildInputs = [
     meson
     ninja