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