2021-01-11 13:49:15 +01:00
|
|
|
{ stdenv, lib, fetchurl, buildDunePackage
|
2020-04-27 12:59:18 +02:00
|
|
|
, alcotest, mtime, mirage-crypto-rng, tls, git-binary
|
|
|
|
, angstrom, astring, cstruct, decompress, digestif, encore, duff, fmt, checkseum
|
2019-10-21 07:36:52 +02:00
|
|
|
, fpath, hex, ke, logs, lru, ocaml_lwt, ocamlgraph, ocplib-endian, uri, rresult
|
2020-04-27 12:59:18 +02:00
|
|
|
, stdlib-shims
|
2017-07-01 15:02:08 +02:00
|
|
|
}:
|
|
|
|
|
2018-11-05 11:21:46 +01:00
|
|
|
buildDunePackage rec {
|
2021-01-21 01:24:35 +01:00
|
|
|
pname = "git";
|
|
|
|
version = "2.1.3";
|
2020-04-27 12:59:18 +02:00
|
|
|
|
2021-01-21 01:24:35 +01:00
|
|
|
minimumOCamlVersion = "4.07";
|
|
|
|
useDune2 = true;
|
2017-07-01 15:02:08 +02:00
|
|
|
|
2021-01-21 01:24:35 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/ocaml-git/releases/download/${version}/git-${version}.tbz";
|
|
|
|
sha256 = "1ppllv65vrkfrmx46aiq5879isffcjmg92z9rv2kh92a83h4lqax";
|
|
|
|
};
|
2017-07-01 15:02:08 +02:00
|
|
|
|
2021-01-21 01:24:35 +01:00
|
|
|
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;
|
2018-05-03 20:37:47 +02:00
|
|
|
|
2021-01-21 01:24:35 +01:00
|
|
|
meta = {
|
|
|
|
description = "Git format and protocol in pure OCaml";
|
|
|
|
license = lib.licenses.isc;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
homepage = "https://github.com/mirage/ocaml-git";
|
|
|
|
};
|
2017-07-01 15:02:08 +02:00
|
|
|
}
|