2022-09-09 14:08:57 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, ocaml
|
2020-11-30 08:33:03 +00:00
|
|
|
, alcotest
|
|
|
|
, base64, cmdliner, rresult, xmlm, yojson
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "rpclib";
|
2021-04-13 19:44:15 +00:00
|
|
|
version = "8.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
useDune2 = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/ocaml-rpc/releases/download/v${version}/rpclib-v${version}.tbz";
|
2021-04-13 19:44:15 +00:00
|
|
|
sha256 = "0fbajg8wq8hjhkvvfnq68br0m0pa8zf2qzadhfgi2nnr9713rada";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
buildInputs = [ cmdliner yojson ];
|
|
|
|
propagatedBuildInputs = [ base64 rresult xmlm ];
|
|
|
|
checkInputs = [ alcotest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/mirage/ocaml-rpc";
|
|
|
|
description = "Light library to deal with RPCs in OCaml";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = [ maintainers.vyorkin ];
|
|
|
|
};
|
|
|
|
}
|