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