nixpkgs/pkgs/development/libraries/jsonrpc-glib/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

68 lines
1.3 KiB
Nix
Raw Normal View History

{ 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";
version = "3.42.0";
2017-12-31 14:47:59 +00:00
outputs = [ "out" "dev" "devdoc" ];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "IhmJpXyoKhJGfcQngizXZRsMrQOBQMkxAnvxB0IIJ2s=";
2017-12-31 14:47:59 +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;
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 = {
updateScript = gnome.updateScript {
2017-12-31 14:47:59 +00:00
packageName = pname;
versionPolicy = "odd-unstable";
2017-12-31 14:47:59 +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";
homepage = "https://gitlab.gnome.org/GNOME/jsonrpc-glib";
2017-12-31 14:47:59 +00:00
license = licenses.lgpl21Plus;
maintainers = teams.gnome.members;
2017-12-31 14:47:59 +00:00
platforms = platforms.unix;
};
}