nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 buildDunePackage,
3 gitlab,
4 cmdliner,
5 cohttp,
6 cohttp-lwt-unix,
7 tls,
8 lwt,
9 stringext,
10 alcotest,
11}:
12
13buildDunePackage {
14 pname = "gitlab-unix";
15 inherit (gitlab) version src;
16
17 minimalOCamlVersion = "4.08";
18
19 postPatch = ''
20 substituteInPlace unix/dune --replace-fail "gitlab bytes" "gitlab"
21 '';
22
23 buildInputs = [
24 cohttp
25 tls
26 stringext
27 ];
28
29 propagatedBuildInputs = [
30 gitlab
31 cmdliner
32 cohttp-lwt-unix
33 lwt
34 ];
35
36 checkInputs = [ alcotest ];
37
38 doCheck = true;
39
40 meta = gitlab.meta // {
41 description = "Gitlab APIv4 Unix library";
42 };
43}