2021-01-11 12:49:15 +00:00
|
|
|
{ stdenv, lib, fetchurl, buildDunePackage
|
2022-10-11 06:50:54 +00:00
|
|
|
, alcotest, mirage-crypto-rng, git-binary
|
|
|
|
, angstrom, astring, cstruct, decompress, digestif, encore, fmt, checkseum
|
2021-05-11 04:54:15 +00:00
|
|
|
, fpath, ke, logs, lwt, ocamlgraph, uri, rresult, base64, hxd
|
2021-02-16 07:39:46 +00:00
|
|
|
, result, bigstringaf, optint, mirage-flow, domain-name, emile
|
2022-10-11 06:50:54 +00:00
|
|
|
, mimic, carton, carton-lwt, carton-git, ipaddr, psq, crowbar, alcotest-lwt, cmdliner
|
2017-07-01 13:02:08 +00:00
|
|
|
}:
|
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildDunePackage rec {
|
2021-01-21 00:24:35 +00:00
|
|
|
pname = "git";
|
2022-10-24 14:48:25 +00:00
|
|
|
version = "3.10.0";
|
2020-04-27 10:59:18 +00:00
|
|
|
|
2022-10-11 06:50:54 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2017-07-01 13:02:08 +00:00
|
|
|
|
2021-01-21 00:24:35 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mirage/ocaml-git/releases/download/${version}/git-${version}.tbz";
|
2022-10-24 14:48:25 +00:00
|
|
|
sha256 = "sha256-slUzAT4qwPzUNzHMbib/ArxaGzcMFl8tg0ynq1y5U1M=";
|
2021-01-21 00:24:35 +00:00
|
|
|
};
|
2017-07-01 13:02:08 +00:00
|
|
|
|
2021-05-11 04:54:15 +00:00
|
|
|
# remove changelog for the carton package
|
|
|
|
postPatch = ''
|
|
|
|
rm CHANGES.carton.md
|
|
|
|
'';
|
|
|
|
|
2021-02-19 21:19:24 +00:00
|
|
|
buildInputs = [
|
|
|
|
base64
|
|
|
|
];
|
2021-01-21 00:24:35 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-10-11 06:50:54 +00:00
|
|
|
angstrom astring checkseum cstruct decompress digestif encore fmt fpath
|
2021-02-16 07:39:46 +00:00
|
|
|
ke logs lwt ocamlgraph uri rresult result bigstringaf optint mirage-flow
|
2021-05-11 04:54:15 +00:00
|
|
|
domain-name emile mimic carton carton-lwt carton-git ipaddr psq hxd
|
2021-02-16 07:39:46 +00:00
|
|
|
];
|
|
|
|
checkInputs = [
|
2022-10-11 06:50:54 +00:00
|
|
|
alcotest alcotest-lwt mirage-crypto-rng git-binary crowbar cmdliner
|
2021-01-21 00:24:35 +00:00
|
|
|
];
|
|
|
|
doCheck = !stdenv.isAarch64;
|
2018-05-03 18:37:47 +00:00
|
|
|
|
2021-01-21 00:24:35 +00:00
|
|
|
meta = {
|
|
|
|
description = "Git format and protocol in pure OCaml";
|
|
|
|
license = lib.licenses.isc;
|
2021-02-19 21:19:24 +00:00
|
|
|
maintainers = with lib.maintainers; [ sternenseemann vbgl ];
|
2021-01-21 00:24:35 +00:00
|
|
|
homepage = "https://github.com/mirage/ocaml-git";
|
|
|
|
};
|
2017-07-01 13:02:08 +00:00
|
|
|
}
|