2021-04-27 18:46:13 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, pkg-config
|
|
|
|
, glib
|
|
|
|
, libsoup
|
|
|
|
, gobject-introspection
|
2021-05-07 21:18:14 +00:00
|
|
|
, gnome
|
2021-04-27 18:46:13 +00:00
|
|
|
}:
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2018-12-25 16:45:11 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-03 01:26:34 +00:00
|
|
|
pname = "rest";
|
|
|
|
version = "0.8.1";
|
2016-09-18 19:35:23 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-21 17:00:13 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2017-12-03 23:03:55 +00:00
|
|
|
sha256 = "0513aad38e5d3cedd4ae3c551634e3be1b9baaa79775e53b2dba9456f15b01c9";
|
2016-09-18 19:35:23 +00:00
|
|
|
};
|
|
|
|
|
2021-04-27 18:46:13 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
gobject-introspection
|
|
|
|
];
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2021-04-27 18:46:13 +00:00
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
libsoup
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
# Remove when https://gitlab.gnome.org/GNOME/librest/merge_requests/2 is merged.
|
|
|
|
"--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt"
|
|
|
|
];
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2018-03-03 01:26:34 +00:00
|
|
|
passthru = {
|
2021-05-07 21:18:14 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2018-03-03 01:26:34 +00:00
|
|
|
packageName = pname;
|
2018-12-25 16:45:11 +00:00
|
|
|
attrPath = "librest";
|
2021-03-20 23:57:24 +00:00
|
|
|
versionPolicy = "odd-unstable";
|
2018-03-03 01:26:34 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2018-12-25 16:45:11 +00:00
|
|
|
description = "Helper library for RESTful services";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Projects/Librest";
|
2021-04-27 18:46:13 +00:00
|
|
|
license = licenses.lgpl21Only;
|
|
|
|
platforms = platforms.unix;
|
2020-04-01 12:40:51 +00:00
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 19:35:23 +00:00
|
|
|
};
|
|
|
|
}
|