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

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

	buildInputs = [ ocaml findlib dune alcotest mtime nocrypto ];

	propagatedBuildInputs = [ git cohttp-lwt ];

	buildPhase = "dune build -p git-http";

	inherit (dune) installPhase;

	doCheck = true;
	checkPhase = "dune runtest -p git-http";

	meta = {
		description = "Client implementation of the “Smart” HTTP Git protocol in pure OCaml";
		inherit (git.meta) homepage license maintainers platforms;
	};
}