2018-12-02 11:41:15 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, glib, libsoup, gobject-introspection, gnome3 }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-03 01:26:34 +00:00
|
|
|
let
|
|
|
|
pname = "rest";
|
|
|
|
version = "0.8.1";
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-05 01:12:11 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2017-12-03 23:03:55 +00:00
|
|
|
sha256 = "0513aad38e5d3cedd4ae3c551634e3be1b9baaa79775e53b2dba9456f15b01c9";
|
2016-09-18 20:35:23 +01:00
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-12-02 11:41:15 +00:00
|
|
|
buildInputs = [ glib libsoup gobject-introspection];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-07-25 22:44:21 +01:00
|
|
|
configureFlags = [ "--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt" ];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-03 01:26:34 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
attrPath = "gnome3.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
meta = with stdenv.lib; {
|
2018-03-03 01:26:34 +00:00
|
|
|
homepage = https://wiki.gnome.org/Projects/Librest;
|
|
|
|
license = licenses.lgpl21;
|
2016-09-18 20:35:23 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
};
|
|
|
|
}
|