29574b70c6
GitOrigin-RevId: 64b4617883844efe0cc20163e007ee636462eb18
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{ buildDunePackage, fetchpatch, git
|
|
, mmap, rresult, result, bigstringaf
|
|
, fmt, bos, fpath, uri, digestif, logs, lwt, git-cohttp-unix
|
|
, mirage-clock, mirage-clock-unix, astring, awa, cmdliner
|
|
, cohttp-lwt-unix, decompress, domain-name, ipaddr, mtime
|
|
, tcpip, awa-mirage, mirage-flow
|
|
, alcotest, alcotest-lwt, base64, cstruct
|
|
, ke, mirage-crypto-rng, ocurl, git-binary
|
|
}:
|
|
|
|
buildDunePackage {
|
|
pname = "git-unix";
|
|
inherit (git) version src minimumOCamlVersion;
|
|
|
|
useDune2 = true;
|
|
|
|
buildInputs = [
|
|
awa awa-mirage cmdliner git-cohttp-unix
|
|
mirage-clock mirage-clock-unix tcpip
|
|
];
|
|
propagatedBuildInputs = [
|
|
mmap rresult result bigstringaf
|
|
fmt bos fpath uri digestif logs lwt
|
|
astring cohttp-lwt-unix decompress
|
|
domain-name ipaddr mtime mirage-flow
|
|
];
|
|
checkInputs = [
|
|
alcotest alcotest-lwt base64 cstruct ke
|
|
mirage-crypto-rng ocurl git-binary
|
|
];
|
|
doCheck = true;
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
url = "https://github.com/mirage/ocaml-git/commit/09b41073fa869c0a595e1d8ed7224d539682af1c.patch";
|
|
sha256 = "1avbxv60gbrll9gny1pl6jwbx5b8282h3frhzy2ghb0fx1pggp6w";
|
|
})
|
|
];
|
|
|
|
meta = {
|
|
description = "Unix backend for the Git protocol(s)";
|
|
inherit (git.meta) homepage license maintainers;
|
|
};
|
|
}
|