mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
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";
|
|
};
|
|
}
|