ocamlPackages.kafka: 0.4 → 0.5
This commit is contained in:
parent
7467ba0b1d
commit
3c34795935
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
||||
|
19
pkgs/development/ocaml-modules/kafka/lwt.nix
Normal file
19
pkgs/development/ocaml-modules/kafka/lwt.nix
Normal 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";
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user