about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/git-unix/default.nix
blob: afeb3f1957b0e4412b76440196771aca693af5bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ stdenv, ocaml, findlib, jbuilder, git-http
, cohttp-lwt-unix
, tls, cmdliner, mtime
}:

stdenv.mkDerivation rec {
	name = "ocaml${ocaml.version}-git-unix-${version}";
	inherit (git-http) version src;

	buildInputs = [ ocaml findlib jbuilder cmdliner mtime ];

	propagatedBuildInputs = [ cohttp-lwt-unix git-http tls ];

	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;
	};
}