Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchurl, 4 ocaml, 5 buildDunePackage, 6 rdkafka, 7 zlib, 8}: 9 10lib.throwIf (lib.versionAtLeast ocaml.version "5.0") 11 "kafka is not available for OCaml ${ocaml.version}" 12 13 buildDunePackage 14 rec { 15 pname = "kafka"; 16 version = "0.5"; 17 18 src = fetchurl { 19 url = "https://github.com/didier-wenzek/ocaml-kafka/releases/download/${version}/kafka-${version}.tbz"; 20 sha256 = "0m9212yap0a00hd0f61i4y4fna3141p77qj3mm7jl1h4q60jdhvy"; 21 }; 22 23 propagatedBuildInputs = [ 24 rdkafka 25 zlib 26 ]; 27 28 meta = with lib; { 29 homepage = "https://github.com/didier-wenzek/ocaml-kafka"; 30 description = "OCaml bindings for Kafka"; 31 license = licenses.mit; 32 maintainers = [ maintainers.vbgl ]; 33 }; 34 }