Files
nixpkgs/pkgs/by-name/js/jsonrpc-glib/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

73 lines
1.3 KiB
Nix

{
stdenv,
lib,
fetchurl,
meson,
ninja,
glib,
json-glib,
pkg-config,
gobject-introspection,
vala,
gi-docgen,
gnome,
}:
stdenv.mkDerivation rec {
pname = "jsonrpc-glib";
version = "3.44.2";
outputs = [
"out"
"dev"
"devdoc"
];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "llSWtuExTzRotIKl2ANA3DsDQKVALXeDytJBVK7nc5Y=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
gobject-introspection
vala
gi-docgen
];
buildInputs = [
glib
json-glib
];
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"
'';
passthru = {
updateScript = gnome.updateScript {
packageName = pname;
versionPolicy = "odd-unstable";
};
};
meta = with lib; {
description = "Library to communicate using the JSON-RPC 2.0 specification";
homepage = "https://gitlab.gnome.org/GNOME/jsonrpc-glib";
license = licenses.lgpl21Plus;
teams = [ teams.gnome ];
platforms = platforms.unix;
};
}