2021-01-11 12:49:15 +00:00
|
|
|
{ lib, buildDunePackage, cohttp-lwt
|
2017-08-27 19:00:55 +00:00
|
|
|
, conduit-lwt-unix, ppx_sexp_conv
|
|
|
|
, cmdliner, fmt, magic-mime
|
|
|
|
}:
|
|
|
|
|
2021-01-11 12:49:15 +00:00
|
|
|
if !lib.versionAtLeast cohttp-lwt.version "0.99"
|
2017-08-27 19:00:55 +00:00
|
|
|
then cohttp-lwt
|
|
|
|
else
|
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
buildDunePackage {
|
2018-11-05 10:21:46 +00:00
|
|
|
pname = "cohttp-lwt-unix";
|
|
|
|
inherit (cohttp-lwt) version src meta;
|
2017-08-27 19:00:55 +00:00
|
|
|
|
2020-06-25 21:22:21 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildInputs = [ cmdliner ppx_sexp_conv ];
|
2017-08-27 19:00:55 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ cohttp-lwt conduit-lwt-unix fmt magic-mime ];
|
|
|
|
}
|