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

31 lines
809 B
Nix
Raw Normal View History

2018-04-19 16:20:18 +03:00
{ stdenv, fetchFromGitHub, zlib, perl, pkgconfig, python, openssl }:
2015-02-03 11:44:01 +03:00
stdenv.mkDerivation rec {
2017-05-05 05:55:07 +03:00
name = "rdkafka-${version}";
version = "0.11.6";
2015-02-03 11:44:01 +03:00
2015-03-12 02:39:36 +03:00
src = fetchFromGitHub {
owner = "edenhill";
repo = "librdkafka";
2017-05-05 05:55:07 +03:00
rev = "v${version}";
sha256 = "17fah3x71ipnzvlj0yg8hfmqkk91s942z34p681r4k8giv7avm30";
2015-02-03 11:44:01 +03:00
};
nativeBuildInputs = [ pkgconfig ];
2018-04-19 16:20:18 +03:00
buildInputs = [ zlib perl python openssl ];
2015-03-12 02:39:36 +03:00
NIX_CFLAGS_COMPILE = "-Wno-error=strict-overflow";
2015-03-12 02:39:36 +03:00
postPatch = ''
patchShebangs .
'';
2015-02-03 11:44:01 +03:00
meta = with stdenv.lib; {
description = "librdkafka - Apache Kafka C/C++ client library";
homepage = https://github.com/edenhill/librdkafka;
2015-02-03 11:44:01 +03:00
license = licenses.bsd2;
platforms = platforms.linux ++ platforms.darwin;
2015-03-12 02:39:36 +03:00
maintainers = with maintainers; [ boothead wkennington ];
2015-02-03 11:44:01 +03:00
};
}