nixpkgs/pkgs/development/ocaml-modules/rpclib/default.nix

30 lines
725 B
Nix
Raw Normal View History

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