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
, libxml2, gnome3, gobjectIntrospection, libsoup, python3Packages }:
stdenv.mkDerivation rec {
major = "0.3"; # if you change this, also change ./setup-hook.sh
minor = "4";
name = "grilo-${major}.${minor}";
let
pname = "grilo";
version = "0.3.4"; # if you change minor, also change ./setup-hook.sh
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://gnome/sources/grilo/${major}/${name}.tar.xz";
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
sha256 = "0vh67gja6yn7czh77ssmx6ncp99fl2926pbi2hplqms27c2n8sbw";
};
@ -28,8 +29,16 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [ python3Packages.pygobject3 gobjectIntrospection ];
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
attrPath = "gnome3.${pname}";
versionPolicy = "none";
};
};
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";
maintainers = gnome3.maintainers;
license = licenses.lgpl2;