gnome3.rest: add updateScript

This commit is contained in:
Jan Tojnar 2018-03-03 02:26:34 +01:00
parent 7af72719f1
commit 1541c31097
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -1,12 +1,13 @@
{ stdenv, fetchurl, pkgconfig, glib, libsoup, gobjectIntrospection, gnome3 }:
stdenv.mkDerivation rec {
name = "rest-${version}";
major = "0.8";
version = "${major}.1";
let
pname = "rest";
version = "0.8.1";
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://gnome/sources/rest/${major}/${name}.tar.xz";
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
sha256 = "0513aad38e5d3cedd4ae3c551634e3be1b9baaa79775e53b2dba9456f15b01c9";
};
@ -15,7 +16,16 @@ stdenv.mkDerivation rec {
configureFlags = "--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt";
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
attrPath = "gnome3.${pname}";
};
};
meta = with stdenv.lib; {
homepage = https://wiki.gnome.org/Projects/Librest;
license = licenses.lgpl21;
platforms = platforms.linux;
maintainers = gnome3.maintainers;
};