gnome3.grilo: add updateScript

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

View File

@ -1,13 +1,14 @@
{ stdenv, fetchurl, pkgconfig, file, intltool, glib { stdenv, fetchurl, pkgconfig, file, intltool, glib
, libxml2, gnome3, gobjectIntrospection, libsoup, python3Packages }: , libxml2, gnome3, gobjectIntrospection, libsoup, python3Packages }:
stdenv.mkDerivation rec { let
major = "0.3"; # if you change this, also change ./setup-hook.sh pname = "grilo";
minor = "4"; version = "0.3.4"; # if you change minor, also change ./setup-hook.sh
name = "grilo-${major}.${minor}"; in stdenv.mkDerivation rec {
name = "${pname}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/grilo/${major}/${name}.tar.xz"; url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
sha256 = "0vh67gja6yn7czh77ssmx6ncp99fl2926pbi2hplqms27c2n8sbw"; sha256 = "0vh67gja6yn7czh77ssmx6ncp99fl2926pbi2hplqms27c2n8sbw";
}; };
@ -28,8 +29,16 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [ python3Packages.pygobject3 gobjectIntrospection ]; propagatedBuildInputs = [ python3Packages.pygobject3 gobjectIntrospection ];
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 = "Framework that provides access to various sources of multimedia content, using a pluggable system"; description = "Framework that provides access to various sources of multimedia content, using a pluggable system";
maintainers = gnome3.maintainers; maintainers = gnome3.maintainers;
license = licenses.lgpl2; license = licenses.lgpl2;