2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, buildDunePackage, cohttp, ocaml_lwt, uri, ppx_sexp_conv, logs }:
|
|
|
|
|
|
|
|
if !stdenv.lib.versionAtLeast cohttp.version "0.99"
|
|
|
|
then cohttp
|
2020-07-18 16:06:22 +00:00
|
|
|
else if !stdenv.lib.versionAtLeast ppx_sexp_conv.version "0.13"
|
|
|
|
then throw "cohttp-lwt is not available for ppx_sexp_conv version ${ppx_sexp_conv.version}"
|
2020-04-24 23:36:52 +00:00
|
|
|
else
|
|
|
|
|
|
|
|
buildDunePackage {
|
|
|
|
pname = "cohttp-lwt";
|
|
|
|
inherit (cohttp) version src meta;
|
|
|
|
|
|
|
|
buildInputs = [ uri ppx_sexp_conv ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ cohttp ocaml_lwt logs ];
|
|
|
|
}
|