2018-11-05 10:21:46 +00:00
|
|
|
{ stdenv, buildDunePackage, cohttp-lwt
|
2017-08-27 19:00:55 +00:00
|
|
|
, conduit-lwt-unix, ppx_sexp_conv
|
|
|
|
, cmdliner, fmt, magic-mime
|
|
|
|
}:
|
|
|
|
|
|
|
|
if !stdenv.lib.versionAtLeast cohttp-lwt.version "0.99"
|
|
|
|
then cohttp-lwt
|
|
|
|
else
|
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "cohttp-lwt-unix";
|
|
|
|
inherit (cohttp-lwt) version src meta;
|
2017-08-27 19:00:55 +00:00
|
|
|
|
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 ];
|
|
|
|
}
|