2019-10-21 06:36:52 +01:00
|
|
|
{ lib, fetchFromGitHub, buildDunePackage
|
|
|
|
, 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 14:02:08 +01:00
|
|
|
}:
|
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "git";
|
2019-10-21 06:36:52 +01:00
|
|
|
version = "2.1.0";
|
2017-07-01 14:02:08 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mirage";
|
|
|
|
repo = "ocaml-git";
|
|
|
|
rev = version;
|
2019-10-21 06:36:52 +01:00
|
|
|
sha256 = "0v55zkwgml6i5hp0kzynbi58z6j15k3qgzg06b3h8pdbv5fwd1jp";
|
2017-07-01 14:02:08 +01:00
|
|
|
};
|
|
|
|
|
2019-10-21 06:36:52 +01: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 19:37:47 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
2017-07-01 14:02:08 +01:00
|
|
|
meta = {
|
|
|
|
description = "Git format and protocol in pure OCaml";
|
2019-10-21 06:36:52 +01:00
|
|
|
license = lib.licenses.isc;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2017-07-01 14:02:08 +01:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
};
|
|
|
|
}
|