nixpkgs/pkgs/development/libraries/rdkafka/default.nix

34 lines
823 B
Nix
Raw Normal View History

2018-04-19 15:20:18 +02:00
{ stdenv, fetchFromGitHub, zlib, perl, pkgconfig, python, openssl }:
2015-02-03 09:44:01 +01:00
stdenv.mkDerivation rec {
pname = "rdkafka";
2020-05-20 01:32:39 +02:00
version = "1.4.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}";
2020-05-20 01:32:39 +02:00
sha256 = "05mgrdzacn9kdpr68r5j0cvsvl54s52glnsc1ww9rcxx6p7hq1ly";
2015-02-03 09:44:01 +01:00
};
nativeBuildInputs = [ pkgconfig ];
2019-09-29 04:56:22 +02:00
2018-04-19 15:20:18 +02:00
buildInputs = [ zlib perl python openssl ];
2015-03-12 00:39:36 +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;
2015-02-03 09:44:01 +01:00
meta = with stdenv.lib; {
description = "librdkafka - Apache Kafka C/C++ client library";
homepage = "https://github.com/edenhill/librdkafka";
2015-02-03 09:44:01 +01:00
license = licenses.bsd2;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ boothead ];
2015-02-03 09:44:01 +01:00
};
}