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