2021-01-15 22:18:51 +00:00
|
|
|
{ stdenv, lib, fetchurl, buildDunePackage
|
2022-10-21 18:38:19 +00:00
|
|
|
, alcotest, mirage-crypto-rng, git-binary
|
|
|
|
, angstrom, astring, cstruct, decompress, digestif, encore, fmt, checkseum
|
2021-05-20 23:08:51 +00:00
|
|
|
, fpath, ke, logs, lwt, ocamlgraph, uri, rresult, base64, hxd
|
2021-02-16 17:04:54 +00:00
|
|
|
, result, bigstringaf, optint, mirage-flow, domain-name, emile
|
2022-10-21 18:38:19 +00:00
|
|
|
, mimic, carton, carton-lwt, carton-git, ipaddr, psq, crowbar, alcotest-lwt, cmdliner
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
2021-02-05 17:12:51 +00:00
|
|
|
pname = "git";
|
2023-02-22 10:55:15 +00:00
|
|
|
version = "3.12.0";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2023-01-20 10:41:00 +00:00
|
|
|
duneVersion = "3";
|
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";
|
2023-02-22 10:55:15 +00:00
|
|
|
hash = "sha256-qgd5fny23J6pcOdgwB3Yt1UxJii2XE25OjcSVFdLMKA=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
# remove changelog for the carton package
|
|
|
|
postPatch = ''
|
|
|
|
rm CHANGES.carton.md
|
|
|
|
'';
|
|
|
|
|
2021-02-22 21:28:39 +00:00
|
|
|
buildInputs = [
|
|
|
|
base64
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-10-21 18:38:19 +00:00
|
|
|
angstrom astring checkseum cstruct decompress digestif encore fmt fpath
|
2021-02-16 17:04:54 +00:00
|
|
|
ke logs lwt ocamlgraph uri rresult result bigstringaf optint mirage-flow
|
2021-05-20 23:08:51 +00:00
|
|
|
domain-name emile mimic carton carton-lwt carton-git ipaddr psq hxd
|
2021-02-16 17:04:54 +00:00
|
|
|
];
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-02-09 11:40:11 +00:00
|
|
|
git-binary
|
|
|
|
];
|
|
|
|
checkInputs = [
|
|
|
|
alcotest alcotest-lwt mirage-crypto-rng crowbar cmdliner
|
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
|
|
|
}
|