nixpkgs/pkgs/development/ocaml-modules/cohttp/lwt.nix

17 lines
466 B
Nix
Raw Normal View History

{ lib, buildDunePackage, cohttp, ocaml_lwt, uri, ppx_sexp_conv, logs }:
if !lib.versionAtLeast cohttp.version "0.99"
then cohttp
else if !lib.versionAtLeast ppx_sexp_conv.version "0.13"
then throw "cohttp-lwt is not available for ppx_sexp_conv version ${ppx_sexp_conv.version}"
else
2019-08-13 14:52:01 -07:00
buildDunePackage {
pname = "cohttp-lwt";
2020-10-28 22:24:43 -07:00
inherit (cohttp) version src useDune2 meta;
buildInputs = [ uri ppx_sexp_conv ];
2019-04-06 06:54:37 -07:00
propagatedBuildInputs = [ cohttp ocaml_lwt logs ];
}