2020-11-21 08:01:01 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
|
|
|
, alcotest
|
|
|
|
, base64, cmdliner, rresult, xmlm, yojson
|
|
|
|
}:
|
2019-09-09 10:07:43 +01:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "rpclib";
|
2020-11-21 08:01:01 +00:00
|
|
|
version = "8.0.0";
|
2019-09-09 10:07:43 +01:00
|
|
|
|
2020-11-21 08:01:01 +00:00
|
|
|
useDune2 = true;
|
2019-09-09 10:07:43 +01:00
|
|
|
|
2020-11-21 08:01:01 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/ocaml-rpc/releases/download/v${version}/rpclib-v${version}.tbz";
|
|
|
|
sha256 = "1kqbixk4d9y15ns566fiyzid5jszkamm1kv7iks71invv33v7krz";
|
2019-09-09 10:07:43 +01:00
|
|
|
};
|
|
|
|
|
2020-11-21 08:01:01 +00:00
|
|
|
buildInputs = [ cmdliner yojson ];
|
|
|
|
propagatedBuildInputs = [ base64 rresult xmlm ];
|
|
|
|
checkInputs = [ alcotest ];
|
2019-09-09 10:07:43 +01:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2019-12-05 07:45:40 +00:00
|
|
|
meta = with lib; {
|
2019-09-09 10:07:43 +01:00
|
|
|
homepage = "https://github.com/mirage/ocaml-rpc";
|
|
|
|
description = "Light library to deal with RPCs in OCaml";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = [ maintainers.vyorkin ];
|
|
|
|
};
|
|
|
|
}
|