ocamlPackages.kafka: 0.4 → 0.5

This commit is contained in:
Vincent Laporte 2021-01-31 22:54:02 +01:00 committed by Vincent Laporte
parent 7467ba0b1d
commit 3c34795935
3 changed files with 30 additions and 11 deletions

View File

@ -1,26 +1,24 @@
{ lib, fetchFromGitHub, buildDunePackage, base, cmdliner, ocaml_lwt,
rdkafka, zlib }:
{ lib, fetchurl, buildDunePackage
, rdkafka, zlib }:
buildDunePackage rec {
pname = "kafka";
version = "0.4";
version = "0.5";
src = fetchFromGitHub {
owner = "didier-wenzek";
repo = "ocaml-kafka";
rev = version;
sha256 = "0lb8x0wh7sf8v9mjwhq32azjz54kw49fsjfb7m76z4nhxfkjw5hy";
useDune2 = true;
src = fetchurl {
url = "https://github.com/didier-wenzek/ocaml-kafka/releases/download/${version}/kafka-${version}.tbz";
sha256 = "0m9212yap0a00hd0f61i4y4fna3141p77qj3mm7jl1h4q60jdhvy";
};
buildInputs = [ base cmdliner ocaml_lwt zlib ];
propagatedBuildInputs = [ rdkafka zlib ];
meta = with lib; {
homepage = "https://github.com/didier-wenzek/ocaml-kafka";
description = "OCaml bindings for Kafka";
license = licenses.mit;
maintainers = [ maintainers.rixed ];
maintainers = [ maintainers.vbgl ];
};
}

View File

@ -0,0 +1,19 @@
{ buildDunePackage
, kafka
, lwt
, cmdliner
}:
buildDunePackage rec {
pname = "kafka_lwt";
inherit (kafka) version useDune2 src;
buildInputs = [ cmdliner ];
propagatedBuildInputs = [ kafka lwt ];
meta = kafka.meta // {
description = "OCaml bindings for Kafka, Lwt bindings";
};
}

View File

@ -506,6 +506,8 @@ let
kafka = callPackage ../development/ocaml-modules/kafka { };
kafka_lwt = callPackage ../development/ocaml-modules/kafka/lwt.nix { };
ke = callPackage ../development/ocaml-modules/ke { };
lablgl = callPackage ../development/ocaml-modules/lablgl { };