aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/tools/kafkacat/default.nix
blob: 5b67d4ddbc57a3bdb268bc8d45d41fb9d92fb387 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, fetchFromGitHub, pkgconfig, zlib, rdkafka, yajl }:

stdenv.mkDerivation rec {
  pname = "kafkacat";

  version = "1.5.0";

  src = fetchFromGitHub {
    owner = "edenhill";
    repo = "kafkacat";
    rev = version;
    sha256 = "0lf2pf3zqncd4a44h0mjm66qnw02k9kvz1hjkah6p6gp7mx3ksjv";
  };

  nativeBuildInputs = [ pkgconfig ];

  buildInputs = [ zlib rdkafka yajl ];

  preConfigure = ''
    patchShebangs ./configure
  '';

  meta = with stdenv.lib; {
    description = "A generic non-JVM producer and consumer for Apache Kafka";
    homepage = "https://github.com/edenhill/kafkacat";
    license = licenses.bsd2;
    platforms = platforms.linux ++ platforms.darwin;
    maintainers = with maintainers; [ nyarly ];
  };
}