2021-01-31 21:54:02 +00:00
|
|
|
{ buildDunePackage
|
2023-10-06 05:17:26 +00:00
|
|
|
, ocaml
|
|
|
|
, lib
|
2021-01-31 21:54:02 +00:00
|
|
|
, kafka
|
|
|
|
, lwt
|
|
|
|
, cmdliner
|
|
|
|
}:
|
|
|
|
|
2023-10-06 05:17:26 +00:00
|
|
|
lib.throwIf (lib.versionAtLeast ocaml.version "5.0")
|
|
|
|
"kafka_lwt is not available for OCaml ${ocaml.version}"
|
|
|
|
|
2021-01-31 21:54:02 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "kafka_lwt";
|
|
|
|
|
2023-10-06 05:17:26 +00:00
|
|
|
inherit (kafka) version src;
|
2021-01-31 21:54:02 +00:00
|
|
|
|
|
|
|
buildInputs = [ cmdliner ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ kafka lwt ];
|
|
|
|
|
|
|
|
meta = kafka.meta // {
|
|
|
|
description = "OCaml bindings for Kafka, Lwt bindings";
|
|
|
|
};
|
|
|
|
}
|