1{ stdenv, lib, fetchurl, buildDunePackage
2, alcotest, mtime, mirage-crypto-rng, tls, git-binary
3, angstrom, astring, cstruct, decompress, digestif, encore, duff, fmt, checkseum
4, fpath, ke, logs, lwt, ocamlgraph, uri, rresult, base64, hxd
5, result, bigstringaf, optint, mirage-flow, domain-name, emile
6, mimic, carton, carton-lwt, carton-git, ipaddr, psq, crowbar, alcotest-lwt
7}:
8
9buildDunePackage rec {
10 pname = "git";
11 version = "3.5.0";
12
13 minimumOCamlVersion = "4.08";
14 useDune2 = true;
15
16 src = fetchurl {
17 url = "https://github.com/mirage/ocaml-git/releases/download/${version}/git-${version}.tbz";
18 sha256 = "bcd5a0aef9957193cbaeeb17c22201e5ca4e815e67bbc696e88efdb38c25ec03";
19 };
20
21 # remove changelog for the carton package
22 postPatch = ''
23 rm CHANGES.carton.md
24 '';
25
26 buildInputs = [
27 base64
28 ];
29 propagatedBuildInputs = [
30 angstrom astring checkseum cstruct decompress digestif encore duff fmt fpath
31 ke logs lwt ocamlgraph uri rresult result bigstringaf optint mirage-flow
32 domain-name emile mimic carton carton-lwt carton-git ipaddr psq hxd
33 ];
34 checkInputs = [
35 alcotest alcotest-lwt mtime mirage-crypto-rng tls git-binary crowbar
36 ];
37 doCheck = !stdenv.isAarch64;
38
39 meta = {
40 description = "Git format and protocol in pure OCaml";
41 license = lib.licenses.isc;
42 maintainers = with lib.maintainers; [ sternenseemann vbgl ];
43 homepage = "https://github.com/mirage/ocaml-git";
44 };
45}