2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, zlib, perl, pkg-config, python, openssl }:
|
2015-02-03 08:44:01 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "rdkafka";
|
2021-01-30 15:34:11 +00:00
|
|
|
version = "1.6.0";
|
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 02:55:07 +00:00
|
|
|
rev = "v${version}";
|
2021-01-30 15:34:11 +00:00
|
|
|
sha256 = "sha256-VCGR0Q8FcoDLr+CFTk/OLMI4zs87K/IdZS1ANmkeb4s=";
|
2015-02-03 08:44:01 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2019-09-29 02:56:22 +00:00
|
|
|
|
2018-04-19 13:20:18 +00:00
|
|
|
buildInputs = [ zlib perl python openssl ];
|
2015-03-11 23:39:36 +00:00
|
|
|
|
2015-10-28 18:41:26 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=strict-overflow";
|
|
|
|
|
2015-03-11 23:39:36 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
2015-02-03 08:44:01 +00:00
|
|
|
|
2019-09-29 02:56:22 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2015-02-03 08:44:01 +00:00
|
|
|
description = "librdkafka - Apache Kafka C/C++ client library";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/edenhill/librdkafka";
|
2015-02-03 08:44:01 +00:00
|
|
|
license = licenses.bsd2;
|
2017-05-16 21:31:52 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2020-11-25 19:41:31 +00:00
|
|
|
maintainers = with maintainers; [ commandodev ];
|
2015-02-03 08:44:01 +00:00
|
|
|
};
|
|
|
|
}
|