2019-04-06 14:54:37 +01:00
|
|
|
{ stdenv, buildDunePackage, cohttp, ocaml_lwt, uri, ppx_sexp_conv, logs }:
|
2017-08-27 20:00:55 +01:00
|
|
|
|
|
|
|
if !stdenv.lib.versionAtLeast cohttp.version "0.99"
|
|
|
|
then cohttp
|
2020-06-25 22:22:21 +01: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}"
|
2017-08-27 20:00:55 +01:00
|
|
|
else
|
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
buildDunePackage {
|
2018-11-05 10:21:46 +00:00
|
|
|
pname = "cohttp-lwt";
|
|
|
|
inherit (cohttp) version src meta;
|
2017-08-27 20:00:55 +01:00
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildInputs = [ uri ppx_sexp_conv ];
|
2017-08-27 20:00:55 +01:00
|
|
|
|
2019-04-06 14:54:37 +01:00
|
|
|
propagatedBuildInputs = [ cohttp ocaml_lwt logs ];
|
2017-08-27 20:00:55 +01:00
|
|
|
}
|