gnome3.rest: add updateScript
This commit is contained in:
parent
7af72719f1
commit
1541c31097
@ -1,12 +1,13 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, glib, libsoup, gobjectIntrospection, gnome3 }:
|
{ stdenv, fetchurl, pkgconfig, glib, libsoup, gobjectIntrospection, gnome3 }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
name = "rest-${version}";
|
pname = "rest";
|
||||||
major = "0.8";
|
version = "0.8.1";
|
||||||
version = "${major}.1";
|
in stdenv.mkDerivation rec {
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/rest/${major}/${name}.tar.xz";
|
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
|
||||||
sha256 = "0513aad38e5d3cedd4ae3c551634e3be1b9baaa79775e53b2dba9456f15b01c9";
|
sha256 = "0513aad38e5d3cedd4ae3c551634e3be1b9baaa79775e53b2dba9456f15b01c9";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -15,7 +16,16 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
configureFlags = "--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt";
|
configureFlags = "--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt";
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
updateScript = gnome3.updateScript {
|
||||||
|
packageName = pname;
|
||||||
|
attrPath = "gnome3.${pname}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
homepage = https://wiki.gnome.org/Projects/Librest;
|
||||||
|
license = licenses.lgpl21;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = gnome3.maintainers;
|
maintainers = gnome3.maintainers;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user