summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/cohttp/lwt-unix.nix
blob: 57885b0e65e03464e50ba02120f78af5a7a111aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, buildDunePackage, cohttp-lwt
, conduit-lwt-unix, conduit-lwt, ppx_sexp_conv
, cmdliner, fmt, logs, magic-mime
, ounit
, cacert
}:

buildDunePackage {
  pname = "cohttp-lwt-unix";
  inherit (cohttp-lwt) version src;

  useDune2 = true;

  buildInputs = [ cmdliner ppx_sexp_conv ];

  propagatedBuildInputs = [
    cohttp-lwt conduit-lwt conduit-lwt-unix fmt logs magic-mime
  ];

  # TODO(@sternenseemann): fail for unknown reason
  # https://github.com/mirage/ocaml-cohttp/issues/675#issuecomment-830692742
  doCheck = false;
  checkInputs = [ ounit cacert ];

  meta = cohttp-lwt.meta // {
    description = "CoHTTP implementation for Unix and Windows using Lwt";
  };
}