2022-03-18 23:22:56 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, glib
|
|
|
|
, json-glib
|
|
|
|
, pkg-config
|
|
|
|
, gobject-introspection
|
|
|
|
, vala
|
|
|
|
, gi-docgen
|
|
|
|
, gnome
|
|
|
|
}:
|
|
|
|
|
2018-12-14 19:42:43 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-12-14 19:36:19 +00:00
|
|
|
pname = "jsonrpc-glib";
|
2022-03-18 23:22:56 +00:00
|
|
|
version = "3.42.0";
|
2017-12-31 14:47:59 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-21 17:00:13 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2022-03-18 23:22:56 +00:00
|
|
|
sha256 = "IhmJpXyoKhJGfcQngizXZRsMrQOBQMkxAnvxB0IIJ2s=";
|
2017-12-31 14:47:59 +00:00
|
|
|
};
|
|
|
|
|
2022-03-18 23:22:56 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
gobject-introspection
|
|
|
|
vala
|
|
|
|
gi-docgen
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
json-glib
|
|
|
|
];
|
|
|
|
|
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;
|
|
|
|
|
2022-03-18 23:22:56 +00:00
|
|
|
postFixup = ''
|
|
|
|
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
|
|
|
|
moveToOutput "share/doc" "$devdoc"
|
|
|
|
'';
|
|
|
|
|
2017-12-31 14:47:59 +00:00
|
|
|
passthru = {
|
2021-05-07 21:18:14 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2017-12-31 14:47:59 +00:00
|
|
|
packageName = pname;
|
2021-03-20 23:57:24 +00:00
|
|
|
versionPolicy = "odd-unstable";
|
2017-12-31 14:47:59 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
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 01:11:51 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/jsonrpc-glib";
|
2017-12-31 14:47:59 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2020-04-01 12:40:51 +00:00
|
|
|
maintainers = teams.gnome.members;
|
2017-12-31 14:47:59 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|