aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/ocaml-modules/git/default.nix
blob: d28e8ef2e7b4d47b42054f4d6848d798a958d944 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ stdenv, fetchurl, buildDunePackage
, alcotest, mtime, mirage-crypto-rng, tls, git-binary
, angstrom, astring, cstruct, decompress, digestif, encore, duff, fmt, checkseum
, fpath, hex, ke, logs, lru, ocaml_lwt, ocamlgraph, ocplib-endian, uri, rresult
, stdlib-shims
}:

buildDunePackage rec {
	pname = "git";
	version = "2.1.3";

	minimumOCamlVersion = "4.07";
	useDune2 = true;

	src = fetchurl {
		url = "https://github.com/mirage/ocaml-git/releases/download/${version}/git-${version}.tbz";
		sha256 = "1ppllv65vrkfrmx46aiq5879isffcjmg92z9rv2kh92a83h4lqax";
	};

	propagatedBuildInputs = [
		angstrom astring checkseum cstruct decompress digestif encore duff fmt fpath
		hex ke logs lru ocaml_lwt ocamlgraph ocplib-endian uri rresult stdlib-shims
	];
	checkInputs = [ alcotest mtime mirage-crypto-rng tls git-binary ];
	doCheck = !stdenv.isAarch64;

	meta = with stdenv; {
		description = "Git format and protocol in pure OCaml";
		license = lib.licenses.isc;
		maintainers = [ lib.maintainers.vbgl ];
		homepage = "https://github.com/mirage/ocaml-git";
	};
}