2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, meson, ninja, glib, json-glib, pkg-config, gobject-introspection, vala, gtk-doc, docbook_xsl, docbook_xml_dtd_43, gnome3 }:
|
2018-12-14 19:42:43 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-12-14 19:36:19 +00:00
|
|
|
pname = "jsonrpc-glib";
|
2020-09-21 03:16:56 +01:00
|
|
|
version = "3.38.0";
|
2017-12-31 14:47:59 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config gobject-introspection vala gtk-doc docbook_xsl docbook_xml_dtd_43 ];
|
2017-12-31 14:47:59 +00:00
|
|
|
buildInputs = [ glib json-glib ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-21 17:00:13 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-09-21 03:16:56 +01:00
|
|
|
sha256 = "3F8ZFKkRUrcPqPyaEe3hMUirSvZE2yejZjI4jJJ6ioI=";
|
2017-12-31 14:47:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Denable_gtk_doc=true"
|
|
|
|
];
|
|
|
|
|
|
|
|
# Tests fail non-deterministically
|
|
|
|
# https://gitlab.gnome.org/GNOME/jsonrpc-glib/issues/2
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2017-12-31 14:47:59 +00:00
|
|
|
description = "A library to communicate using the JSON-RPC 2.0 specification";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/jsonrpc-glib";
|
2017-12-31 14:47:59 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2020-04-01 13:40:51 +01:00
|
|
|
maintainers = teams.gnome.members;
|
2017-12-31 14:47:59 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|