1{ stdenv, ocaml, findlib, jbuilder, git, cohttp-lwt
2, alcotest, mtime, nocrypto
3}:
4
5stdenv.mkDerivation rec {
6 name = "ocaml${ocaml.version}-git-http-${version}";
7 inherit (git) version src;
8
9 buildInputs = [ ocaml findlib jbuilder alcotest mtime nocrypto ];
10
11 propagatedBuildInputs = [ git cohttp-lwt ];
12
13 buildPhase = "jbuilder build -p git-http";
14
15 inherit (jbuilder) installPhase;
16
17 doCheck = true;
18 checkPhase = "jbuilder runtest -p git-http";
19
20 meta = {
21 description = "Client implementation of the “Smart” HTTP Git protocol in pure OCaml";
22 inherit (git.meta) homepage license maintainers platforms;
23 };
24}