From 2401535732471b3cc72d9e28de4fdda4f1c8a03b Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Fri, 1 Oct 2021 04:39:42 +0000 Subject: [PATCH] =?UTF-8?q?gnome.gnome-autoar:=200.3.3=20=E2=86=92=200.4.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gnome/misc/gnome-autoar/default.nix | 38 ++++++++++++++++--- 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/pkgs/desktops/gnome/misc/gnome-autoar/default.nix b/pkgs/desktops/gnome/misc/gnome-autoar/default.nix index 2afb401bef45..e8bfaffb45e8 100644 --- a/pkgs/desktops/gnome/misc/gnome-autoar/default.nix +++ b/pkgs/desktops/gnome/misc/gnome-autoar/default.nix @@ -1,5 +1,9 @@ -{ lib, stdenv +{ stdenv +, lib , fetchurl +, fetchpatch +, meson +, ninja , pkg-config , gnome , gtk3 @@ -11,21 +15,32 @@ stdenv.mkDerivation rec { pname = "gnome-autoar"; - version = "0.3.3"; + version = "0.4.0"; outputs = [ "out" "dev" ]; src = fetchurl { url = "mirror://gnome/sources/gnome-autoar/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; - sha256 = "JyQA9zo3Wn6I/fHhJZG/uPPwPt8BeAytzXT3C2E+XAQ="; + sha256 = "6oxtUkurxxKsWeHQ46yL8BN0gtrfM8lP6RE3lKG8RHQ="; }; - passthru = { - updateScript = gnome.updateScript { packageName = "gnome-autoar"; attrPath = "gnome.gnome-autoar"; }; - }; + patches = [ + # Make compatible with older Meson. + # https://gitlab.gnome.org/GNOME/gnome-autoar/-/merge_requests/26 + (fetchpatch { + url = "https://gitlab.gnome.org/GNOME/gnome-autoar/-/commit/2d90da6174c03aad546802234a3d77fa0b714e6b.patch"; + sha256 = "CysDpBJmVPm4gOSV2h041MY2yApfAy8+4QC7Jlka1xE="; + }) + (fetchpatch { + url = "https://gitlab.gnome.org/GNOME/gnome-autoar/-/commit/ac21bd0c50584a1905a0da65d4bf9a6926ecd483.patch"; + sha256 = "aTu6eKFSKjljk0TYkhFjPcD8eJCIk8TR0YhZYO9JE1k="; + }) + ]; nativeBuildInputs = [ gobject-introspection + meson + ninja pkg-config vala ]; @@ -39,6 +54,17 @@ stdenv.mkDerivation rec { glib ]; + mesonFlags = [ + "-Dvapi=true" + ]; + + passthru = { + updateScript = gnome.updateScript { + packageName = "gnome-autoar"; + attrPath = "gnome.gnome-autoar"; + }; + }; + meta = with lib; { platforms = platforms.linux; maintainers = teams.gnome.members;