about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/kafka/lwt.nix
blob: da931d6e8bffd8446f5332929c8b07819e1a8f52 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ 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";
  };
}