2019-12-05 07:48:04 +01:00
|
|
|
{ lib, fetchurl, buildDunePackage
|
2019-10-21 07:36:52 +02:00
|
|
|
, alcotest, git, mtime, nocrypto
|
|
|
|
, angstrom, astring, cstruct, decompress, digestif, encore, duff, fmt
|
|
|
|
, fpath, hex, ke, logs, lru, ocaml_lwt, ocamlgraph, ocplib-endian, uri, rresult
|
2017-07-01 15:02:08 +02:00
|
|
|
}:
|
|
|
|
|
2018-11-05 11:21:46 +01:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "git";
|
2019-12-05 07:48:04 +01:00
|
|
|
version = "2.1.2";
|
2017-07-01 15:02:08 +02:00
|
|
|
|
2019-12-05 07:48:04 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/ocaml-git/releases/download/${version}/git-${version}.tbz";
|
|
|
|
sha256 = "0yyclsh255k7pvc2fcsdi8k2fcrr0by2nz6g3sqnwlimjyp7mz5j";
|
2017-07-01 15:02:08 +02:00
|
|
|
};
|
|
|
|
|
2019-10-21 07:36:52 +02:00
|
|
|
propagatedBuildInputs = [ angstrom astring cstruct decompress digestif encore duff fmt fpath hex ke logs lru ocaml_lwt ocamlgraph ocplib-endian uri rresult ];
|
|
|
|
checkInputs = lib.optionals doCheck [ alcotest git mtime nocrypto ];
|
2018-05-03 20:37:47 +02:00
|
|
|
doCheck = true;
|
|
|
|
|
2017-07-01 15:02:08 +02:00
|
|
|
meta = {
|
|
|
|
description = "Git format and protocol in pure OCaml";
|
2019-10-21 07:36:52 +02:00
|
|
|
license = lib.licenses.isc;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2019-12-05 07:48:04 +01:00
|
|
|
homepage = "https://github.com/mirage/ocaml-git";
|
2017-07-01 15:02:08 +02:00
|
|
|
};
|
|
|
|
}
|