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