1{
2 lib,
3 fetchurl,
4 buildDunePackage,
5 alcotest,
6 base64,
7 cmdliner,
8 rresult,
9 xmlm,
10 yojson,
11}:
12
13buildDunePackage rec {
14 pname = "rpclib";
15 version = "9.0.0";
16
17 minimalOCamlVersion = "4.08";
18 duneVersion = "3";
19
20 src = fetchurl {
21 url = "https://github.com/mirage/ocaml-rpc/releases/download/${version}/rpclib-${version}.tbz";
22 hash = "sha256-ziPrdWwCjZN0vRmCMpa923wjfT8FVFLTDRz30VIW6WM=";
23 };
24
25 buildInputs = [
26 cmdliner
27 yojson
28 ];
29 propagatedBuildInputs = [
30 base64
31 rresult
32 xmlm
33 ];
34 checkInputs = [ alcotest ];
35
36 doCheck = true;
37
38 meta = with lib; {
39 homepage = "https://github.com/mirage/ocaml-rpc";
40 description = "Light library to deal with RPCs in OCaml";
41 license = licenses.isc;
42 maintainers = [ maintainers.vyorkin ];
43 };
44}