2021-02-16 17:04:54 +00:00
|
|
|
{ lib, buildDunePackage, fetchurl
|
2022-10-21 18:38:19 +00:00
|
|
|
, ke, duff, decompress, cstruct, optint, bigstringaf
|
|
|
|
, checkseum, logs, psq, fmt
|
|
|
|
, result, rresult, fpath, base64, bos, digestif, alcotest
|
2021-03-19 17:17:44 +00:00
|
|
|
, crowbar, alcotest-lwt, lwt, findlib, mirage-flow, cmdliner, hxd
|
2023-02-02 18:25:31 +00:00
|
|
|
, getconf, substituteAll
|
2021-02-16 17:04:54 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "carton";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.7.0";
|
2021-02-16 17:04:54 +00:00
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2021-02-16 17:04:54 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-10-21 18:38:19 +00:00
|
|
|
url = "https://github.com/mirage/ocaml-git/releases/download/${pname}-v${version}/git-${pname}-v${version}.tbz";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-vWkBJdP4ZpRCEwzrFMzsdHay4VyiXix/+1qzk+7yDvk=";
|
2021-02-16 17:04:54 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./carton-find-getconf.patch;
|
|
|
|
getconf = "${getconf}";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-02-16 17:04:54 +00:00
|
|
|
# remove changelogs for mimic and the git* packages
|
|
|
|
postPatch = ''
|
2021-05-20 23:08:51 +00:00
|
|
|
rm CHANGES.md
|
2021-02-16 17:04:54 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cmdliner
|
|
|
|
digestif
|
|
|
|
result
|
|
|
|
rresult
|
|
|
|
fpath
|
|
|
|
bos
|
2021-03-19 17:17:44 +00:00
|
|
|
hxd
|
2021-02-16 17:04:54 +00:00
|
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
ke
|
|
|
|
duff
|
|
|
|
decompress
|
|
|
|
cstruct
|
|
|
|
optint
|
|
|
|
bigstringaf
|
|
|
|
checkseum
|
|
|
|
logs
|
|
|
|
psq
|
|
|
|
fmt
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
2022-03-05 16:20:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
findlib
|
|
|
|
];
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [
|
2021-02-16 17:04:54 +00:00
|
|
|
base64
|
|
|
|
alcotest
|
|
|
|
alcotest-lwt
|
|
|
|
crowbar
|
|
|
|
lwt
|
|
|
|
mirage-flow
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Implementation of PACKv2 file in OCaml";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://github.com/mirage/ocaml-git";
|
|
|
|
maintainers = [ maintainers.sternenseemann ];
|
|
|
|
};
|
|
|
|
}
|