ocamlPackages.rpclib: 7.0.0 → 8.0.0

This commit is contained in:
Vincent Laporte 2020-11-21 09:01:01 +01:00 committed by Vincent Laporte
parent abfbb842b5
commit d6dfd173f9
3 changed files with 20 additions and 17 deletions

View File

@ -1,13 +1,16 @@
{ lib, buildDunePackage, rpclib, ppxlib, ppx_deriving }: { lib, buildDunePackage, rpclib, alcotest, ppxlib, ppx_deriving, yojson }:
buildDunePackage rec { buildDunePackage rec {
pname = "ppx_deriving_rpc"; pname = "ppx_deriving_rpc";
inherit (rpclib) version src; inherit (rpclib) version useDune2 src;
buildInputs = [ ppxlib ]; minimumOCamlVersion = "4.08";
propagatedBuildInputs = [ rpclib ppx_deriving ]; propagatedBuildInputs = [ ppxlib rpclib ppx_deriving ];
checkInputs = [ alcotest yojson ];
doCheck = true;
meta = with lib; { meta = with lib; {
homepage = "https://github.com/mirage/ocaml-rpc"; homepage = "https://github.com/mirage/ocaml-rpc";

View File

@ -1,20 +1,22 @@
{ lib, fetchFromGitHub, buildDunePackage, alcotest, cmdliner, rresult, result, xmlm, yojson }: { lib, fetchurl, buildDunePackage
, alcotest
, base64, cmdliner, rresult, xmlm, yojson
}:
buildDunePackage rec { buildDunePackage rec {
pname = "rpclib"; pname = "rpclib";
version = "7.0.0"; version = "8.0.0";
minimumOCamlVersion = "4.04"; useDune2 = true;
src = fetchFromGitHub { src = fetchurl {
owner = "mirage"; url = "https://github.com/mirage/ocaml-rpc/releases/download/v${version}/rpclib-v${version}.tbz";
repo = "ocaml-rpc"; sha256 = "1kqbixk4d9y15ns566fiyzid5jszkamm1kv7iks71invv33v7krz";
rev = "v${version}";
sha256 = "0d8nb272mjxkq5ddn65cy9gjpa8yvd0v3jv3wp5xfh9gj29wd2jj";
}; };
buildInputs = [ alcotest cmdliner yojson ]; buildInputs = [ cmdliner yojson ];
propagatedBuildInputs = [ rresult result xmlm ]; propagatedBuildInputs = [ base64 rresult xmlm ];
checkInputs = [ alcotest ];
doCheck = true; doCheck = true;

View File

@ -878,9 +878,7 @@ let
ppx_deriving_protobuf = callPackage ../development/ocaml-modules/ppx_deriving_protobuf {}; ppx_deriving_protobuf = callPackage ../development/ocaml-modules/ppx_deriving_protobuf {};
ppx_deriving_rpc = callPackage ../development/ocaml-modules/ppx_deriving_rpc { ppx_deriving_rpc = callPackage ../development/ocaml-modules/ppx_deriving_rpc { };
ppxlib = ppxlib.override { legacy = true; };
};
ppx_deriving_yojson = callPackage ../development/ocaml-modules/ppx_deriving_yojson {}; ppx_deriving_yojson = callPackage ../development/ocaml-modules/ppx_deriving_yojson {};