about summary refs log tree commit diff
path: root/pkgs/desktops/gnome/core/gnome-screenshot
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2022-03-30 16:54:57 +0800
committerBobby Rong <rjl931189261@126.com>2022-03-30 17:29:10 +0800
commit68824fbc89d6105cf2bf997bae51bc281d8bad52 (patch)
tree8d35467fc6519f6c738a28e7045f0747248f6d45 /pkgs/desktops/gnome/core/gnome-screenshot
parentdbc55b66671e4bb4479b37dbd484118985048a9e (diff)
gnome.gnome-screenshot: fix build with meson 0.61
Diffstat (limited to 'pkgs/desktops/gnome/core/gnome-screenshot')
-rw-r--r--pkgs/desktops/gnome/core/gnome-screenshot/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/desktops/gnome/core/gnome-screenshot/default.nix b/pkgs/desktops/gnome/core/gnome-screenshot/default.nix
index a2c8f75271775..3904f1443f7d5 100644
--- a/pkgs/desktops/gnome/core/gnome-screenshot/default.nix
+++ b/pkgs/desktops/gnome/core/gnome-screenshot/default.nix
@@ -4,6 +4,7 @@
 , libxml2
 , libhandy
 , fetchurl
+, fetchpatch
 , pkg-config
 , libcanberra-gtk3
 , gtk3
@@ -27,6 +28,15 @@ stdenv.mkDerivation rec {
     sha256 = "Stt97JJkKPdCY9V5ZnPPFC5HILbnaPVGio0JM/mMlZc=";
   };
 
+  patches = [
+    # Fix build with meson 0.61
+    # https://gitlab.gnome.org/GNOME/gnome-screenshot/-/issues/186
+    (fetchpatch {
+      url = "https://gitlab.gnome.org/GNOME/gnome-screenshot/-/commit/b60dad3c2536c17bd201f74ad8e40eb74385ed9f.patch";
+      sha256 = "Js83h/3xxcw2hsgjzGa5lAYFXVrt6MPhXOTh5dZTx/w=";
+    })
+  ];
+
   nativeBuildInputs = [
     meson
     ninja