3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/ocaml-modules/rpclib/default.nix

30 lines
725 B
Nix
Raw Normal View History

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";
2021-04-11 09:12:20 +01:00
version = "8.1.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";
2021-04-11 09:12:20 +01:00
sha256 = "0fbajg8wq8hjhkvvfnq68br0m0pa8zf2qzadhfgi2nnr9713rada";
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 ];
};
}