icon-library: fix build with meson 0.61

This commit is contained in:
Bobby Rong 2022-03-30 19:17:17 +08:00
parent 6a079dad15
commit 739e7ceeff
No known key found for this signature in database
GPG Key ID: ED07364437C91161

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, wrapGAppsHook
{ lib, stdenv, fetchurl, fetchpatch, wrapGAppsHook
, cargo, desktop-file-utils, meson, ninja, pkg-config, rustc
, gdk-pixbuf, glib, gtk4, gtksourceview5, libadwaita
}:
@ -12,6 +12,16 @@ stdenv.mkDerivation rec {
sha256 = "1zrcnc5dn5fgcl3vklfpbp3m0qzi2n2viw59vw5fhwkysvp670y7";
};
patches = [
# Fix build with meson 0.61
# data/meson.build:85:0: ERROR: gnome.compile_resources takes exactly 2 arguments, but got 3.
# https://gitlab.gnome.org/World/design/icon-library/-/merge_requests/54
(fetchpatch {
url = "https://gitlab.gnome.org/World/design/icon-library/-/commit/c629dbf6670f9bb0b98ff21c17110489b58f5c85.patch";
sha256 = "UKC1CPaM58/z0zINN794luWZdoFx1zGxETPb8VtbO3E=";
})
];
nativeBuildInputs = [
cargo desktop-file-utils meson ninja pkg-config rustc wrapGAppsHook
];