From 68824fbc89d6105cf2bf997bae51bc281d8bad52 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Wed, 30 Mar 2022 16:54:57 +0800 Subject: [PATCH] gnome.gnome-screenshot: fix build with meson 0.61 --- pkgs/desktops/gnome/core/gnome-screenshot/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/desktops/gnome/core/gnome-screenshot/default.nix b/pkgs/desktops/gnome/core/gnome-screenshot/default.nix index a2c8f7527177..3904f1443f7d 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