2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchFromGitHub, zlib, perl, pkgconfig, python, openssl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rdkafka";
|
2020-12-25 13:55:36 +00:00
|
|
|
version = "1.5.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "edenhill";
|
|
|
|
repo = "librdkafka";
|
|
|
|
rev = "v${version}";
|
2020-12-25 13:55:36 +00:00
|
|
|
sha256 = "12cc7l5vpxyrm8ca0cpm8sdl54hb8dranal8sz55r9y8igz1q1wb";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [ zlib perl python openssl ];
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=strict-overflow";
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "librdkafka - Apache Kafka C/C++ client library";
|
|
|
|
homepage = "https://github.com/edenhill/librdkafka";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2020-11-30 08:33:03 +00:00
|
|
|
maintainers = with maintainers; [ commandodev ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|