depot/third_party/nixpkgs/pkgs/development/ocaml-modules/kafka/lwt.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

24 lines
418 B
Nix

{ buildDunePackage
, ocaml
, lib
, kafka
, lwt
, cmdliner
}:
lib.throwIf (lib.versionAtLeast ocaml.version "5.0")
"kafka_lwt is not available for OCaml ${ocaml.version}"
buildDunePackage rec {
pname = "kafka_lwt";
inherit (kafka) version src;
buildInputs = [ cmdliner ];
propagatedBuildInputs = [ kafka lwt ];
meta = kafka.meta // {
description = "OCaml bindings for Kafka, Lwt bindings";
};
}