nixpkgs/pkgs/development/libraries/jsonrpc-glib/default.nix
2019-11-01 22:54:48 -07:00

38 lines
1.1 KiB
Nix

{ stdenv, fetchurl, meson, ninja, glib, json-glib, pkgconfig, gobject-introspection, vala, gtk-doc, docbook_xsl, docbook_xml_dtd_43, gnome3 }:
stdenv.mkDerivation rec {
pname = "jsonrpc-glib";
version = "3.34.0";
outputs = [ "out" "dev" "devdoc" ];
nativeBuildInputs = [ meson ninja pkgconfig gobject-introspection vala gtk-doc docbook_xsl docbook_xml_dtd_43 ];
buildInputs = [ glib json-glib ];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "0j05x4xv2cp3cbmp30m68z8g4rdw7b030ip4wszyfj9ya15v5kni";
};
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;
};
};
meta = with stdenv.lib; {
description = "A library to communicate using the JSON-RPC 2.0 specification";
homepage = https://gitlab.gnome.org/GNOME/jsonrpc-glib;
license = licenses.lgpl21Plus;
maintainers = gnome3.maintainers;
platforms = platforms.unix;
};
}