gnome3.libmediaart: add updateScript

This commit is contained in:
Jan Tojnar 2018-03-03 06:18:12 +01:00
parent 5b970e47fa
commit 478e3b6252
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -1,19 +1,28 @@
{ stdenv, fetchurl, pkgconfig, glib, gdk_pixbuf, gobjectIntrospection, gnome3 }: { stdenv, fetchurl, pkgconfig, glib, gdk_pixbuf, gobjectIntrospection, gnome3 }:
let let
majorVersion = "1.9"; pname = "libmediaart";
version = "1.9.4";
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libmediaart-${majorVersion}.4"; name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/libmediaart/${majorVersion}/${name}.tar.xz"; url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
sha256 = "a57be017257e4815389afe4f58fdacb6a50e74fd185452b23a652ee56b04813d"; sha256 = "a57be017257e4815389afe4f58fdacb6a50e74fd185452b23a652ee56b04813d";
}; };
nativeBuildInputs = [ pkgconfig gobjectIntrospection ]; nativeBuildInputs = [ pkgconfig gobjectIntrospection ];
buildInputs = [ glib gdk_pixbuf ]; buildInputs = [ glib gdk_pixbuf ];
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
attrPath = "gnome3.${pname}";
versionPolicy = "none";
};
};
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Library tasked with managing, extracting and handling media art caches"; description = "Library tasked with managing, extracting and handling media art caches";
maintainers = gnome3.maintainers; maintainers = gnome3.maintainers;