4bac34ead1
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
74 lines
1.4 KiB
Nix
74 lines
1.4 KiB
Nix
{ lib, buildDunePackage, fetchurl
|
|
, ke, duff, decompress, cstruct, optint, bigstringaf
|
|
, checkseum, logs, psq, fmt
|
|
, result, rresult, fpath, base64, bos, digestif, alcotest
|
|
, crowbar, alcotest-lwt, lwt, findlib, mirage-flow, cmdliner, hxd
|
|
, getconf, substituteAll
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "carton";
|
|
version = "0.6.0";
|
|
|
|
minimalOCamlVersion = "4.08";
|
|
duneVersion = "3";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/mirage/ocaml-git/releases/download/${pname}-v${version}/git-${pname}-v${version}.tbz";
|
|
hash = "sha256-NAm4Xq7L0Dgynr8cKZQ356M4GR6D19LbCRxvnSlIf1U=";
|
|
};
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./carton-find-getconf.patch;
|
|
getconf = "${getconf}";
|
|
})
|
|
];
|
|
|
|
# remove changelogs for mimic and the git* packages
|
|
postPatch = ''
|
|
rm CHANGES.md
|
|
'';
|
|
|
|
buildInputs = [
|
|
cmdliner
|
|
digestif
|
|
result
|
|
rresult
|
|
fpath
|
|
bos
|
|
hxd
|
|
];
|
|
propagatedBuildInputs = [
|
|
ke
|
|
duff
|
|
decompress
|
|
cstruct
|
|
optint
|
|
bigstringaf
|
|
checkseum
|
|
logs
|
|
psq
|
|
fmt
|
|
];
|
|
|
|
doCheck = true;
|
|
nativeBuildInputs = [
|
|
findlib
|
|
];
|
|
checkInputs = [
|
|
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 ];
|
|
};
|
|
}
|