2023-02-09 11:40:11 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
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";
|
2023-02-09 11:40:11 +00:00
|
|
|
version = "9.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
duneVersion = "3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
src = fetchurl {
|
2023-02-09 11:40:11 +00:00
|
|
|
url = "https://github.com/mirage/ocaml-rpc/releases/download/${version}/rpclib-${version}.tbz";
|
|
|
|
hash = "sha256-ziPrdWwCjZN0vRmCMpa923wjfT8FVFLTDRz30VIW6WM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
buildInputs = [ cmdliner yojson ];
|
|
|
|
propagatedBuildInputs = [ base64 rresult xmlm ];
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [ alcotest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
doCheck = true;
|
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 ];
|
|
|
|
};
|
|
|
|
}
|