2018-04-19 06:20:18 -07:00
|
|
|
{ stdenv, fetchFromGitHub, zlib, perl, pkgconfig, python, openssl }:
|
2015-02-03 00:44:01 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "rdkafka";
|
2019-11-13 13:22:26 -08:00
|
|
|
version = "1.2.2";
|
2015-02-03 00:44:01 -08:00
|
|
|
|
2015-03-11 16:39:36 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "edenhill";
|
|
|
|
repo = "librdkafka";
|
2017-05-04 19:55:07 -07:00
|
|
|
rev = "v${version}";
|
2019-11-13 13:22:26 -08:00
|
|
|
sha256 = "1daikjr2wcjxcys41hfw3vg2mqk6cy297pfcl05s90wnjvd7fkqk";
|
2015-02-03 00:44:01 -08:00
|
|
|
};
|
|
|
|
|
2017-09-05 14:26:13 -07:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2019-09-28 19:56:22 -07:00
|
|
|
|
2018-04-19 06:20:18 -07:00
|
|
|
buildInputs = [ zlib perl python openssl ];
|
2015-03-11 16:39:36 -07:00
|
|
|
|
2015-10-28 11:41:26 -07:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=strict-overflow";
|
|
|
|
|
2015-03-11 16:39:36 -07:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
2015-02-03 00:44:01 -08:00
|
|
|
|
2019-09-28 19:56:22 -07:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-02-03 00:44:01 -08:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "librdkafka - Apache Kafka C/C++ client library";
|
2017-08-01 13:03:30 -07:00
|
|
|
homepage = https://github.com/edenhill/librdkafka;
|
2015-02-03 00:44:01 -08:00
|
|
|
license = licenses.bsd2;
|
2017-05-16 14:31:52 -07:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2019-01-26 02:01:09 -08:00
|
|
|
maintainers = with maintainers; [ boothead ];
|
2015-02-03 00:44:01 -08:00
|
|
|
};
|
|
|
|
}
|