gnome3.grilo-plugins: add updateScript

This commit is contained in:
Jan Tojnar 2018-03-03 07:07:02 +01:00
parent a9719c6be2
commit b8e2420e86
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -2,26 +2,38 @@
, gnome3, libxml2, gupnp, gssdp, lua5, liboauth, gupnp-av , gnome3, libxml2, gupnp, gssdp, lua5, liboauth, gupnp-av
, gmime, json-glib, avahi, tracker, dleyna-server, itstool }: , gmime, json-glib, avahi, tracker, dleyna-server, itstool }:
stdenv.mkDerivation rec { let
major = "0.3"; pname = "grilo-plugins";
minor = "5"; version = "0.3.5";
name = "grilo-plugins-${major}.${minor}"; major = gnome3.versionBranch version;
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/grilo-plugins/${major}/${name}.tar.xz"; url = "mirror://gnome/sources/${pname}/${major}/${name}.tar.xz";
sha256 = "1yv8a0mfd5qmdbdrnd0is5c51s1mvibhw61na99iagnbirxq4xr9"; sha256 = "1yv8a0mfd5qmdbdrnd0is5c51s1mvibhw61na99iagnbirxq4xr9";
}; };
installFlags = [ "GRL_PLUGINS_DIR=$(out)/lib/grilo-${major}" ]; installFlags = [ "GRL_PLUGINS_DIR=$(out)/lib/grilo-${major}" ];
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig intltool itstool ];
buildInputs = [ gnome3.grilo libxml2 gupnp gssdp gnome3.libgdata buildInputs = [
lua5 liboauth gupnp-av sqlite gnome3.gnome-online-accounts gnome3.grilo libxml2 gupnp gssdp gnome3.libgdata
gnome3.totem-pl-parser gnome3.rest gmime json-glib lua5 liboauth gupnp-av sqlite gnome3.gnome-online-accounts
avahi gnome3.libmediaart tracker dleyna-server intltool itstool ]; gnome3.totem-pl-parser gnome3.rest gmime json-glib
avahi gnome3.libmediaart tracker dleyna-server
];
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
attrPath = "gnome3.${pname}";
versionPolicy = "none";
};
};
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = https://wiki.gnome.org/action/show/Projects/Grilo; homepage = https://wiki.gnome.org/Projects/Grilo;
description = "A collection of plugins for the Grilo framework"; description = "A collection of plugins for the Grilo framework";
maintainers = gnome3.maintainers; maintainers = gnome3.maintainers;
license = licenses.lgpl2; license = licenses.lgpl2;