2017-07-02 09:38:28 +01:00
|
|
|
{ stdenv, ocaml, findlib, jbuilder, git-http
|
2017-08-27 20:00:55 +01:00
|
|
|
, cohttp-lwt-unix
|
|
|
|
, tls, magic-mime, cmdliner, mtime
|
2017-07-02 09:38:28 +01: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 20:00:55 +01:00
|
|
|
propagatedBuildInputs = [ cohttp-lwt-unix git-http tls ];
|
2017-07-02 09:38:28 +01: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;
|
|
|
|
};
|
|
|
|
}
|