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