2021-01-15 22:18:51 +00:00
|
|
|
{ lib, buildDunePackage, cohttp-lwt
|
2020-04-24 23:36:52 +00:00
|
|
|
, conduit-lwt-unix, ppx_sexp_conv
|
|
|
|
, cmdliner, fmt, magic-mime
|
|
|
|
}:
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
if !lib.versionAtLeast cohttp-lwt.version "0.99"
|
2020-04-24 23:36:52 +00:00
|
|
|
then cohttp-lwt
|
|
|
|
else
|
|
|
|
|
|
|
|
buildDunePackage {
|
2021-02-05 17:12:51 +00:00
|
|
|
pname = "cohttp-lwt-unix";
|
|
|
|
inherit (cohttp-lwt) version src meta;
|
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-02-05 17:12:51 +00:00
|
|
|
propagatedBuildInputs = [ cohttp-lwt conduit-lwt-unix fmt magic-mime ];
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|