mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
32cecea960
Semi-automatic update. These checks were performed: - built on NixOS - found 0.11.3 with grep in /nix/store/z53qgvkdj04v2wspk7ril70qy1ckwh8k-rdkafka-0.11.3 - found 0.11.3 in filename of file in /nix/store/z53qgvkdj04v2wspk7ril70qy1ckwh8k-rdkafka-0.11.3 cc "@boothead @wkennington"
33 lines
870 B
Nix
33 lines
870 B
Nix
{ stdenv, fetchFromGitHub, zlib, perl, pkgconfig, python }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "rdkafka-${version}";
|
|
version = "0.11.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "edenhill";
|
|
repo = "librdkafka";
|
|
rev = "v${version}";
|
|
sha256 = "17ghq0kzk2fdpxhr40xgg3s0p0n0gkvd0d85c6jsww3mj8v5xd14";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ zlib perl python ];
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=strict-overflow";
|
|
|
|
configureFlags = stdenv.lib.optionals stdenv.isDarwin [ "--disable-ssl" ];
|
|
|
|
postPatch = ''
|
|
patchShebangs .
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "librdkafka - Apache Kafka C/C++ client library";
|
|
homepage = https://github.com/edenhill/librdkafka;
|
|
license = licenses.bsd2;
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
maintainers = with maintainers; [ boothead wkennington ];
|
|
};
|
|
}
|