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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
418 B
Nix
Raw Normal View History

2021-01-31 21:54:02 +00:00
{ buildDunePackage
, ocaml
, lib
2021-01-31 21:54:02 +00:00
, kafka
, lwt
, cmdliner
}:
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";
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";
};
}