2017-05-05 04:55:07 +02:00
|
|
|
{ stdenv, fetchFromGitHub, zlib, perl, pkgconfig, python }:
|
2015-02-03 09:44:01 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-05-05 04:55:07 +02:00
|
|
|
name = "rdkafka-${version}";
|
2018-02-27 22:03:06 +01:00
|
|
|
version = "0.11.3";
|
2015-02-03 09:44:01 +01:00
|
|
|
|
2015-03-12 00:39:36 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "edenhill";
|
|
|
|
repo = "librdkafka";
|
2017-05-05 04:55:07 +02:00
|
|
|
rev = "v${version}";
|
2018-02-27 22:03:06 +01:00
|
|
|
sha256 = "17ghq0kzk2fdpxhr40xgg3s0p0n0gkvd0d85c6jsww3mj8v5xd14";
|
2015-02-03 09:44:01 +01:00
|
|
|
};
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ zlib perl python ];
|
2015-03-12 00:39:36 +01:00
|
|
|
|
2015-10-28 19:41:26 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=strict-overflow";
|
|
|
|
|
2017-05-16 23:31:52 +02:00
|
|
|
configureFlags = stdenv.lib.optionals stdenv.isDarwin [ "--disable-ssl" ];
|
|
|
|
|
2015-03-12 00:39:36 +01:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
2015-02-03 09:44:01 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "librdkafka - Apache Kafka C/C++ client library";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://github.com/edenhill/librdkafka;
|
2015-02-03 09:44:01 +01:00
|
|
|
license = licenses.bsd2;
|
2017-05-16 23:31:52 +02:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2015-03-12 00:39:36 +01:00
|
|
|
maintainers = with maintainers; [ boothead wkennington ];
|
2015-02-03 09:44:01 +01:00
|
|
|
};
|
|
|
|
}
|