From 3d1d33c5ff17c582cea2f0f63a65cb37cc43318c Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Wed, 30 Mar 2022 16:45:42 +0800 Subject: [PATCH] gnome.gnome-books: fix build with meson 0.61 --- pkgs/desktops/gnome/apps/gnome-books/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pkgs/desktops/gnome/apps/gnome-books/default.nix b/pkgs/desktops/gnome/apps/gnome-books/default.nix index 0e8b322cf5ed..ec99e915fab1 100644 --- a/pkgs/desktops/gnome/apps/gnome-books/default.nix +++ b/pkgs/desktops/gnome/apps/gnome-books/default.nix @@ -1,8 +1,10 @@ -{ lib, stdenv +{ stdenv +, lib , meson , ninja , gettext , fetchurl +, fetchpatch , evince , gjs , pkg-config @@ -35,6 +37,15 @@ stdenv.mkDerivation rec { sha256 = "0c41l8m2di8h39bmk2fnhpwglwp6qhljmwqqbihzp4ay9976zrc5"; }; + patches = [ + # Fix build with meson 0.61 + # https://gitlab.gnome.org/GNOME/gnome-books/-/merge_requests/62 + (fetchpatch { + url = "https://gitlab.gnome.org/GNOME/gnome-books/-/commit/2663dcdaaaa71f067a4c2d0005eecc0fdf940bf5.patch"; + sha256 = "v2mLzrxSWrkJ0N6seR8jNXX14FsneEPuE9ELLVUe6+E="; + }) + ]; + nativeBuildInputs = [ meson ninja