2021-01-11 12:49:15 +00:00
|
|
|
{ lib, buildDunePackage, cohttp, ocaml_lwt, uri, ppx_sexp_conv, logs }:
|
2017-08-27 20:00:55 +01:00
|
|
|
|
2021-01-11 12:49:15 +00:00
|
|
|
if !lib.versionAtLeast cohttp.version "0.99"
|
2017-08-27 20:00:55 +01:00
|
|
|
then cohttp
|
2021-01-11 12:49:15 +00:00
|
|
|
else if !lib.versionAtLeast ppx_sexp_conv.version "0.13"
|
2020-06-25 22:22:21 +01:00
|
|
|
then throw "cohttp-lwt is not available for ppx_sexp_conv version ${ppx_sexp_conv.version}"
|
2017-08-27 20:00:55 +01:00
|
|
|
else
|
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
buildDunePackage {
|
2021-01-21 00:24:35 +00:00
|
|
|
pname = "cohttp-lwt";
|
|
|
|
inherit (cohttp) version src useDune2 meta;
|
2017-08-27 20:00:55 +01:00
|
|
|
|
2021-01-21 00:24:35 +00:00
|
|
|
buildInputs = [ uri ppx_sexp_conv ];
|
2017-08-27 20:00:55 +01:00
|
|
|
|
2021-01-21 00:24:35 +00:00
|
|
|
propagatedBuildInputs = [ cohttp ocaml_lwt logs ];
|
2017-08-27 20:00:55 +01:00
|
|
|
}
|