From 0b838137df46d4d0b88e368190e54ea50d458c37 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Fri, 17 Apr 2026 18:54:03 +0200 Subject: [PATCH] gnome-calculator: fix build --- pkgs/by-name/gn/gnome-calculator/package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/by-name/gn/gnome-calculator/package.nix b/pkgs/by-name/gn/gnome-calculator/package.nix index 67500d02803a..16bfbe636829 100644 --- a/pkgs/by-name/gn/gnome-calculator/package.nix +++ b/pkgs/by-name/gn/gnome-calculator/package.nix @@ -9,6 +9,7 @@ gettext, itstool, fetchurl, + fetchpatch, pkg-config, libxml2, gtk4, @@ -34,6 +35,14 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-3fTNLt2hNcQcivaPnAzc2dmpFjy59/jijKLI6B/Ydlc="; }; + patches = [ + # Fix tests with GNU MPC 1.4.0 + (fetchpatch { + url = "https://gitlab.gnome.org/GNOME/gnome-calculator/-/commit/c9bf69ce3688390a584ca7571ea5fcda5aea8863.patch"; + hash = "sha256-FoV6SUprVdNcRORpoi+bNMTjzMM8bmXuze+6C9lqF8E="; + }) + ]; + nativeBuildInputs = [ appstream blueprint-compiler