@@ -0,0 +1,27 @@
1+{ stdenv, fetchFromGitHub, buildDunePackage, alcotest, cmdliner, rresult, result, xmlm, yojson }:
2+
3+buildDunePackage rec {
4+ pname = "rpclib";
5+ version = "5.9.0";
6+
7+ minimumOCamlVersion = "4.04";
8+
9+ src = fetchFromGitHub {
10+ owner = "mirage";
11+ repo = "ocaml-rpc";
12+ rev = "v${version}";
13+ sha256 = "1swnnmmnkn53mxqpckdnd1j8bz0wksqznjbv0zamspxyqybmancq";
14+ };
15+
16+ buildInputs = [ alcotest cmdliner yojson ];
17+ propagatedBuildInputs = [ rresult result xmlm ];
18+
19+ doCheck = true;
20+
21+ meta = with stdenv.lib; {
22+ homepage = "https://github.com/mirage/ocaml-rpc";
23+ description = "Light library to deal with RPCs in OCaml";
24+ license = licenses.isc;
25+ maintainers = [ maintainers.vyorkin ];
26+ };
27+}