2018-05-03 19:37:47 +01:00
|
|
|
{ stdenv, ocaml, findlib, jbuilder, git, cohttp-lwt
|
|
|
|
, alcotest, mtime, nocrypto
|
|
|
|
}:
|
2017-07-02 09:26:39 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ocaml${ocaml.version}-git-http-${version}";
|
|
|
|
inherit (git) version src;
|
|
|
|
|
2018-05-03 19:37:47 +01:00
|
|
|
buildInputs = [ ocaml findlib jbuilder alcotest mtime nocrypto ];
|
2017-07-02 09:26:39 +01:00
|
|
|
|
2017-08-27 20:00:55 +01:00
|
|
|
propagatedBuildInputs = [ git cohttp-lwt ];
|
2017-07-02 09:26:39 +01:00
|
|
|
|
|
|
|
buildPhase = "jbuilder build -p git-http";
|
|
|
|
|
|
|
|
inherit (jbuilder) installPhase;
|
|
|
|
|
2018-05-03 19:37:47 +01:00
|
|
|
doCheck = true;
|
|
|
|
checkPhase = "jbuilder runtest -p git-http";
|
|
|
|
|
2017-07-02 09:26:39 +01:00
|
|
|
meta = {
|
|
|
|
description = "Client implementation of the “Smart” HTTP Git protocol in pure OCaml";
|
|
|
|
inherit (git.meta) homepage license maintainers platforms;
|
|
|
|
};
|
|
|
|
}
|