2023-03-02 09:31:29 +00:00
|
|
|
{ buildDunePackage, fetchpatch, git
|
2022-10-11 06:50:54 +00:00
|
|
|
, rresult, result, bigstringaf
|
|
|
|
, fmt, bos, fpath, uri, digestif, logs, lwt
|
2021-02-16 07:39:46 +00:00
|
|
|
, mirage-clock, mirage-clock-unix, astring, awa, cmdliner
|
2022-10-11 06:50:54 +00:00
|
|
|
, decompress, domain-name, ipaddr, mtime
|
|
|
|
, tcpip, awa-mirage, mirage-flow, mirage-unix
|
2021-02-16 07:39:46 +00:00
|
|
|
, alcotest, alcotest-lwt, base64, cstruct
|
|
|
|
, ke, mirage-crypto-rng, ocurl, git-binary
|
2021-05-11 04:54:15 +00:00
|
|
|
, ptime, mimic, ca-certs-nss, tls, tls-mirage
|
2022-10-11 06:50:54 +00:00
|
|
|
, cacert, happy-eyeballs-lwt, git-mirage
|
2021-02-16 07:39:46 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage {
|
|
|
|
pname = "git-unix";
|
2022-10-11 06:50:54 +00:00
|
|
|
inherit (git) version src;
|
2021-02-16 07:39:46 +00:00
|
|
|
|
2022-10-11 06:50:54 +00:00
|
|
|
minimalOCamlVersion = "4.08";
|
2021-02-16 07:39:46 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2022-03-01 15:42:22 +00:00
|
|
|
awa
|
|
|
|
awa-mirage
|
|
|
|
cmdliner
|
|
|
|
mirage-clock
|
|
|
|
tcpip
|
2021-02-16 07:39:46 +00:00
|
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
2022-10-11 06:50:54 +00:00
|
|
|
rresult result bigstringaf
|
|
|
|
fmt bos fpath digestif logs lwt
|
|
|
|
astring decompress
|
|
|
|
domain-name ipaddr mirage-flow mirage-unix
|
2021-05-11 04:54:15 +00:00
|
|
|
cstruct ptime mimic ca-certs-nss
|
2022-10-11 06:50:54 +00:00
|
|
|
tls tls-mirage git happy-eyeballs-lwt
|
|
|
|
git-mirage mirage-clock-unix
|
2021-02-16 07:39:46 +00:00
|
|
|
];
|
2022-03-01 15:42:22 +00:00
|
|
|
checkInputs = [
|
2021-05-11 04:54:15 +00:00
|
|
|
alcotest alcotest-lwt base64 ke
|
2022-03-01 15:42:22 +00:00
|
|
|
mirage-crypto-rng
|
2022-10-11 06:50:54 +00:00
|
|
|
uri mtime
|
2021-05-11 04:54:15 +00:00
|
|
|
cacert # sets up NIX_SSL_CERT_FILE
|
2021-02-16 07:39:46 +00:00
|
|
|
];
|
2022-03-01 15:42:22 +00:00
|
|
|
nativeCheckInputs = [ git-binary ];
|
2021-02-16 07:39:46 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Unix backend for the Git protocol(s)";
|
|
|
|
inherit (git.meta) homepage license maintainers;
|
|
|
|
};
|
|
|
|
}
|