2021-01-15 22:18:51 +00:00
|
|
|
{ stdenv, lib, fetchurl, buildDunePackage
|
2020-07-18 16:06:22 +00:00
|
|
|
, alcotest, mtime, mirage-crypto-rng, tls, git-binary
|
|
|
|
, angstrom, astring, cstruct, decompress, digestif, encore, duff, fmt, checkseum
|
2021-02-22 21:28:39 +00:00
|
|
|
, fpath, ke, logs, lwt, ocamlgraph, uri, rresult, base64
|
2021-02-16 17:04:54 +00:00
|
|
|
, result, bigstringaf, optint, mirage-flow, domain-name, emile
|
|
|
|
, mimic, carton, carton-lwt, carton-git, ipaddr, psq, crowbar, alcotest-lwt
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
2021-02-05 17:12:51 +00:00
|
|
|
pname = "git";
|
2021-03-19 17:17:44 +00:00
|
|
|
version = "3.3.2";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2021-02-16 17:04:54 +00:00
|
|
|
minimumOCamlVersion = "4.08";
|
2021-02-05 17:12:51 +00:00
|
|
|
useDune2 = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/ocaml-git/releases/download/${version}/git-${version}.tbz";
|
2021-03-19 17:17:44 +00:00
|
|
|
sha256 = "01xcjggsb13n6018lp6ic0f6pglfl39qcg126h1k3da19hvpzhrv";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-22 21:28:39 +00:00
|
|
|
buildInputs = [
|
|
|
|
base64
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
angstrom astring checkseum cstruct decompress digestif encore duff fmt fpath
|
2021-02-16 17:04:54 +00:00
|
|
|
ke logs lwt ocamlgraph uri rresult result bigstringaf optint mirage-flow
|
|
|
|
domain-name emile mimic carton carton-lwt carton-git ipaddr psq
|
|
|
|
];
|
|
|
|
checkInputs = [
|
|
|
|
alcotest alcotest-lwt mtime mirage-crypto-rng tls git-binary crowbar
|
2021-02-05 17:12:51 +00:00
|
|
|
];
|
|
|
|
doCheck = !stdenv.isAarch64;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = {
|
|
|
|
description = "Git format and protocol in pure OCaml";
|
|
|
|
license = lib.licenses.isc;
|
2021-02-22 21:28:39 +00:00
|
|
|
maintainers = with lib.maintainers; [ sternenseemann vbgl ];
|
2021-02-05 17:12:51 +00:00
|
|
|
homepage = "https://github.com/mirage/ocaml-git";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|