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