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