2021-07-07 10:31:04 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, zlib, zstd, pkg-config, python3, openssl }:
|
2015-02-03 09:44:01 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "rdkafka";
|
2021-12-05 06:11:20 +01:00
|
|
|
version = "1.8.2";
|
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}";
|
2021-12-05 06:11:20 +01:00
|
|
|
sha256 = "sha256-YagvXeusHThUo5/1mMs+r+Nr03vAagdnFMkwX3hJsq4=";
|
2015-02-03 09:44:01 +01:00
|
|
|
};
|
|
|
|
|
2021-03-16 18:18:50 +01:00
|
|
|
nativeBuildInputs = [ pkg-config python3 ];
|
2019-09-29 04:56:22 +02:00
|
|
|
|
2021-07-07 10:31:04 +02:00
|
|
|
buildInputs = [ zlib zstd openssl ];
|
2015-03-12 00:39:36 +01:00
|
|
|
|
2015-10-28 19:41:26 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=strict-overflow";
|
|
|
|
|
2015-03-12 00:39:36 +01:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
2015-02-03 09:44:01 +01:00
|
|
|
|
2019-09-29 04:56:22 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2015-02-03 09:44:01 +01:00
|
|
|
description = "librdkafka - Apache Kafka C/C++ client library";
|
2020-04-01 03:11:51 +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;
|
2020-11-25 20:41:31 +01:00
|
|
|
maintainers = with maintainers; [ commandodev ];
|
2015-02-03 09:44:01 +01:00
|
|
|
};
|
|
|
|
}
|