2017-07-02 10:38:28 +02:00
|
|
|
{ stdenv, ocaml, findlib, jbuilder, git-http
|
2017-08-27 21:00:55 +02:00
|
|
|
, cohttp-lwt-unix
|
|
|
|
, tls, magic-mime, 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;
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib jbuilder cmdliner mtime ];
|
|
|
|
|
2017-08-27 21:00:55 +02:00
|
|
|
propagatedBuildInputs = [ cohttp-lwt-unix git-http tls ];
|
2017-07-02 10:38:28 +02:00
|
|
|
|
|
|
|
buildPhase = "jbuilder build -p git-unix";
|
|
|
|
|
|
|
|
inherit (jbuilder) installPhase;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Unix backend for the Git protocol(s)";
|
|
|
|
inherit (git-http.meta) homepage license maintainers platforms;
|
|
|
|
};
|
|
|
|
}
|