67 lines
1.3 KiB
Nix
67 lines
1.3 KiB
Nix
|
{ lib, buildDunePackage, fetchurl
|
||
|
, ke, duff, decompress, cstruct, optint, bigstringaf, stdlib-shims
|
||
|
, bigarray-compat, checkseum, logs, psq, fmt
|
||
|
, result, rresult, fpath, base64, bos, digestif, mmap, alcotest
|
||
|
, crowbar, alcotest-lwt, lwt, findlib, mirage-flow, cmdliner
|
||
|
}:
|
||
|
|
||
|
buildDunePackage rec {
|
||
|
pname = "carton";
|
||
|
version = "0.2.0";
|
||
|
|
||
|
useDune2 = true;
|
||
|
minimumOCamlVersion = "4.08";
|
||
|
|
||
|
src = fetchurl {
|
||
|
url = "https://github.com/mirage/ocaml-git/releases/download/${pname}-v${version}/${pname}-${pname}-v${version}.tbz";
|
||
|
sha256 = "0gfns4a9p9540kijccsg52yzyn3jfvi737mb0g71yazyc89dqwhn";
|
||
|
};
|
||
|
|
||
|
# remove changelogs for mimic and the git* packages
|
||
|
postPatch = ''
|
||
|
rm CHANGES.md CHANGES.mimic.md
|
||
|
'';
|
||
|
|
||
|
buildInputs = [
|
||
|
cmdliner
|
||
|
digestif
|
||
|
mmap
|
||
|
result
|
||
|
rresult
|
||
|
fpath
|
||
|
bos
|
||
|
];
|
||
|
propagatedBuildInputs = [
|
||
|
ke
|
||
|
duff
|
||
|
decompress
|
||
|
cstruct
|
||
|
optint
|
||
|
bigstringaf
|
||
|
stdlib-shims
|
||
|
bigarray-compat
|
||
|
checkseum
|
||
|
logs
|
||
|
psq
|
||
|
fmt
|
||
|
];
|
||
|
|
||
|
doCheck = true;
|
||
|
checkInputs = [
|
||
|
base64
|
||
|
alcotest
|
||
|
alcotest-lwt
|
||
|
crowbar
|
||
|
lwt
|
||
|
findlib
|
||
|
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 ];
|
||
|
};
|
||
|
}
|