2018-09-05 17:11:47 +01:00
|
|
|
{ stdenv, ocaml, findlib, dune, git, cohttp-lwt
|
2018-05-03 19:37:47 +01:00
|
|
|
, 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-09-05 17:11:47 +01:00
|
|
|
buildInputs = [ ocaml findlib dune 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
|
|
|
|
2018-09-05 17:11:47 +01:00
|
|
|
buildPhase = "dune build -p git-http";
|
2017-07-02 09:26:39 +01:00
|
|
|
|
2018-09-05 17:11:47 +01:00
|
|
|
inherit (dune) installPhase;
|
2017-07-02 09:26:39 +01:00
|
|
|
|
2018-05-03 19:37:47 +01:00
|
|
|
doCheck = true;
|
2018-09-05 17:11:47 +01:00
|
|
|
checkPhase = "dune runtest -p git-http";
|
2018-05-03 19:37:47 +01:00
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|