2021-01-15 22:18:51 +00:00
|
|
|
{ lib, buildDunePackage, cohttp-lwt
|
2021-05-20 23:08:51 +00:00
|
|
|
, conduit-lwt-unix, conduit-lwt, ppx_sexp_conv
|
|
|
|
, cmdliner, fmt, logs, magic-mime
|
|
|
|
, ounit
|
|
|
|
, cacert
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage {
|
2021-02-05 17:12:51 +00:00
|
|
|
pname = "cohttp-lwt-unix";
|
2021-05-20 23:08:51 +00:00
|
|
|
inherit (cohttp-lwt) version src;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
useDune2 = true;
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
buildInputs = [ cmdliner ppx_sexp_conv ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
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";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|