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