nixpkgs/pkgs/development/libraries/rdkafka/default.nix
zimbatm 92ee92f783
rdkafka: 1.8.2 -> 1.9.1
`which` is now needed in the build
2022-07-07 20:11:06 +02:00

34 lines
840 B
Nix

{ lib, stdenv, fetchFromGitHub, zlib, zstd, pkg-config, python3, openssl, which }:
stdenv.mkDerivation rec {
pname = "rdkafka";
version = "1.9.1";
src = fetchFromGitHub {
owner = "edenhill";
repo = "librdkafka";
rev = "v${version}";
sha256 = "sha256-r5H02HLqiixbShgXDEaYEe4OrQK2En5zuLtMOajEIBM=";
};
nativeBuildInputs = [ pkg-config python3 which ];
buildInputs = [ zlib zstd openssl ];
NIX_CFLAGS_COMPILE = "-Wno-error=strict-overflow";
postPatch = ''
patchShebangs .
'';
enableParallelBuilding = true;
meta = with 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; [ commandodev ];
};
}