1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-19 03:47:13 -04:00
nixpkgs/pkgs/development/libraries/rdkafka/default.nix

33 lines
869 B
Nix
Raw Normal View History

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