3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/rdkafka/default.nix

31 lines
796 B
Nix
Raw Normal View History

2018-04-19 14:20:18 +01:00
{ stdenv, fetchFromGitHub, zlib, perl, pkgconfig, python, openssl }:
2015-02-03 08:44:01 +00:00
stdenv.mkDerivation rec {
2017-05-05 03:55:07 +01:00
name = "rdkafka-${version}";
2019-04-01 13:51:48 +01:00
version = "1.0.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 03:55:07 +01:00
rev = "v${version}";
2019-04-01 13:51:48 +01:00
sha256 = "1k4lk2vvvni87brs3j51by3j69ff2892jiq2f4979sxncq0apzlg";
2015-02-03 08:44:01 +00:00
};
nativeBuildInputs = [ pkgconfig ];
2018-04-19 14:20:18 +01:00
buildInputs = [ zlib perl python openssl ];
2015-03-11 23:39:36 +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
meta = with stdenv.lib; {
description = "librdkafka - Apache Kafka C/C++ client library";
homepage = https://github.com/edenhill/librdkafka;
2015-02-03 08:44:01 +00:00
license = licenses.bsd2;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ boothead ];
2015-02-03 08:44:01 +00:00
};
}