nixpkgs/pkgs/development/libraries/rdkafka/default.nix
2023-02-26 00:59:41 +02:00

34 lines
844 B
Nix

{ lib, stdenv, fetchFromGitHub, zlib, zstd, pkg-config, python3, openssl, which }:
stdenv.mkDerivation rec {
pname = "rdkafka";
version = "2.0.2";
src = fetchFromGitHub {
owner = "edenhill";
repo = "librdkafka";
rev = "v${version}";
sha256 = "sha256-iEW+n1PSnDoCzQCVfl4T1nchc0kL2q/M3jKNYW2f9/8=";
};
nativeBuildInputs = [ pkg-config python3 which ];
buildInputs = [ zlib zstd openssl ];
env.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 ];
};
}