2018-09-05 18:11:47 +02:00
|
|
|
{ stdenv, ocaml, findlib, dune, git-http
|
2017-08-27 21:00:55 +02:00
|
|
|
, cohttp-lwt-unix
|
2018-07-21 02:44:44 +02:00
|
|
|
, tls, cmdliner, mtime
|
2017-07-02 10:38:28 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ocaml${ocaml.version}-git-unix-${version}";
|
|
|
|
inherit (git-http) version src;
|
|
|
|
|
2018-09-05 18:11:47 +02:00
|
|
|
buildInputs = [ ocaml findlib dune cmdliner mtime ];
|
2017-07-02 10:38:28 +02:00
|
|
|
|
2017-08-27 21:00:55 +02:00
|
|
|
propagatedBuildInputs = [ cohttp-lwt-unix git-http tls ];
|
2017-07-02 10:38:28 +02:00
|
|
|
|
2018-09-05 18:11:47 +02:00
|
|
|
buildPhase = "dune build -p git-unix";
|
2017-07-02 10:38:28 +02:00
|
|
|
|
2018-09-05 18:11:47 +02:00
|
|
|
inherit (dune) installPhase;
|
2017-07-02 10:38:28 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Unix backend for the Git protocol(s)";
|
|
|
|
inherit (git-http.meta) homepage license maintainers platforms;
|
|
|
|
};
|
|
|
|
}
|