f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
43 lines
594 B
Nix
43 lines
594 B
Nix
{
|
|
buildDunePackage,
|
|
gitlab,
|
|
cmdliner,
|
|
cohttp,
|
|
cohttp-lwt-unix,
|
|
tls,
|
|
lwt,
|
|
stringext,
|
|
alcotest,
|
|
}:
|
|
|
|
buildDunePackage {
|
|
pname = "gitlab-unix";
|
|
inherit (gitlab) version src;
|
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
postPatch = ''
|
|
substituteInPlace unix/dune --replace-fail "gitlab bytes" "gitlab"
|
|
'';
|
|
|
|
buildInputs = [
|
|
cohttp
|
|
tls
|
|
stringext
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
gitlab
|
|
cmdliner
|
|
cohttp-lwt-unix
|
|
lwt
|
|
];
|
|
|
|
checkInputs = [ alcotest ];
|
|
|
|
doCheck = true;
|
|
|
|
meta = gitlab.meta // {
|
|
description = "Gitlab APIv4 Unix library";
|
|
};
|
|
}
|