1{ lib, stdenv, fetchFromGitHub, pkg-config, zlib, rdkafka, yajl, avro-c, libserdes, which }:
2
3stdenv.mkDerivation rec {
4 pname = "kcat";
5
6 version = "1.7.1";
7
8 src = fetchFromGitHub {
9 owner = "edenhill";
10 repo = "kcat";
11 rev = version;
12 sha256 = "sha256-pCIYNx0GYPGDYzTLq9h/LbOrJjhKWLAV4gq07Ikl5O4=";
13 };
14
15 nativeBuildInputs = [ pkg-config which ];
16
17 buildInputs = [ zlib rdkafka yajl avro-c libserdes ];
18
19 preConfigure = ''
20 patchShebangs ./configure
21 '';
22
23 meta = with lib; {
24 description = "A generic non-JVM producer and consumer for Apache Kafka";
25 homepage = "https://github.com/edenhill/kcat";
26 license = licenses.bsd2;
27 platforms = platforms.linux ++ platforms.darwin;
28 maintainers = with maintainers; [ nyarly ];
29 };
30}