2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, buildDunePackage, cohttp-lwt
|
|
|
|
, conduit-lwt-unix, ppx_sexp_conv
|
|
|
|
, cmdliner, fmt, magic-mime
|
|
|
|
}:
|
|
|
|
|
|
|
|
if !stdenv.lib.versionAtLeast cohttp-lwt.version "0.99"
|
|
|
|
then cohttp-lwt
|
|
|
|
else
|
|
|
|
|
|
|
|
buildDunePackage {
|
|
|
|
pname = "cohttp-lwt-unix";
|
|
|
|
inherit (cohttp-lwt) version src meta;
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ cmdliner ppx_sexp_conv ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ cohttp-lwt conduit-lwt-unix fmt magic-mime ];
|
|
|
|
}
|