From 82cea11923906492263ea968ccd986a01238b5d9 Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Mon, 1 May 2023 15:58:55 +0800 Subject: [PATCH] gnome.geary: Fix build with Vala 0.56.7 & 0.57+ --- pkgs/desktops/gnome/misc/geary/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkgs/desktops/gnome/misc/geary/default.nix b/pkgs/desktops/gnome/misc/geary/default.nix index e2b333430619..37a5cf2cace5 100644 --- a/pkgs/desktops/gnome/misc/geary/default.nix +++ b/pkgs/desktops/gnome/misc/geary/default.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchurl +, fetchpatch2 , pkg-config , gtk3 , vala @@ -54,6 +55,19 @@ stdenv.mkDerivation rec { sha256 = "SJFm+H3Z0pAR9eW3lpTyWItHP34ZHFnOkBPIyODjY+c="; }; + patches = [ + # Fix build with Vala 0.56.7 & 0.57+ + # https://hydra.nixos.org/build/217892787 + (fetchpatch2 { + url = "https://gitlab.gnome.org/GNOME/geary/-/commit/4a7ca820b1d3d6130fedf254dc5b4cd7efb58f2c.patch"; + sha256 = "L63TMOkxTYu8jxX+IIc9owoa1TBmaeGXgW+8gfMtFw4="; + }) + (fetchpatch2 { + url = "https://gitlab.gnome.org/GNOME/geary/-/commit/10f9c133a2ad515127d65f3bba13a0d91b75f4af.patch"; + sha256 = "0yohy+FZyHW4MkImLQYNlcZyMekH7mXvO2yEuAm3fXw="; + }) + ]; + nativeBuildInputs = [ appstream-glib desktop-file-utils