1{ stdenv, fetchurl, pkgconfig, glib, libsoup, gobject-introspection, gnome3 }:
2
3stdenv.mkDerivation rec {
4 pname = "rest";
5 version = "0.8.1";
6
7 src = fetchurl {
8 url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
9 sha256 = "0513aad38e5d3cedd4ae3c551634e3be1b9baaa79775e53b2dba9456f15b01c9";
10 };
11
12 nativeBuildInputs = [ pkgconfig gobject-introspection ];
13 buildInputs = [ glib libsoup ];
14
15 configureFlags = [ "--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt" ];
16
17 passthru = {
18 updateScript = gnome3.updateScript {
19 packageName = pname;
20 attrPath = "librest";
21 };
22 };
23
24 meta = with stdenv.lib; {
25 description = "Helper library for RESTful services";
26 homepage = https://wiki.gnome.org/Projects/Librest;
27 license = licenses.lgpl21;
28 platforms = platforms.linux;
29 maintainers = gnome3.maintainers;
30 };
31}