mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
ocamlPackages.kafka_lwt: disable for OCaml ≥ 5.0
This commit is contained in:
parent
b3e14b9045
commit
ff910956e9
@ -5,8 +5,6 @@ buildDunePackage rec {
|
|||||||
pname = "kafka";
|
pname = "kafka";
|
||||||
version = "0.5";
|
version = "0.5";
|
||||||
|
|
||||||
useDune2 = true;
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/didier-wenzek/ocaml-kafka/releases/download/${version}/kafka-${version}.tbz";
|
url = "https://github.com/didier-wenzek/ocaml-kafka/releases/download/${version}/kafka-${version}.tbz";
|
||||||
sha256 = "0m9212yap0a00hd0f61i4y4fna3141p77qj3mm7jl1h4q60jdhvy";
|
sha256 = "0m9212yap0a00hd0f61i4y4fna3141p77qj3mm7jl1h4q60jdhvy";
|
||||||
|
@ -1,13 +1,18 @@
|
|||||||
{ buildDunePackage
|
{ buildDunePackage
|
||||||
|
, ocaml
|
||||||
|
, lib
|
||||||
, kafka
|
, kafka
|
||||||
, lwt
|
, lwt
|
||||||
, cmdliner
|
, cmdliner
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
lib.throwIf (lib.versionAtLeast ocaml.version "5.0")
|
||||||
|
"kafka_lwt is not available for OCaml ${ocaml.version}"
|
||||||
|
|
||||||
buildDunePackage rec {
|
buildDunePackage rec {
|
||||||
pname = "kafka_lwt";
|
pname = "kafka_lwt";
|
||||||
|
|
||||||
inherit (kafka) version useDune2 src;
|
inherit (kafka) version src;
|
||||||
|
|
||||||
buildInputs = [ cmdliner ];
|
buildInputs = [ cmdliner ];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user