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