lol
1{ lib, stdenv, fetchFromGitHub, zlib, zstd, pkg-config, python3, openssl, which }:
2
3stdenv.mkDerivation rec {
4 pname = "rdkafka";
5 version = "2.3.0";
6
7 src = fetchFromGitHub {
8 owner = "confluentinc";
9 repo = "librdkafka";
10 rev = "v${version}";
11 sha256 = "sha256-F67aKmyMmqBVG5sF8ZwqemmfvVi/0bDjaiugKKSipuA=";
12 };
13
14 nativeBuildInputs = [ pkg-config python3 which ];
15
16 buildInputs = [ zlib zstd openssl ];
17
18 env.NIX_CFLAGS_COMPILE = "-Wno-error=strict-overflow";
19
20 postPatch = ''
21 patchShebangs .
22 '';
23
24 enableParallelBuilding = true;
25
26 meta = with lib; {
27 description = "librdkafka - Apache Kafka C/C++ client library";
28 homepage = "https://github.com/confluentinc/librdkafka";
29 license = licenses.bsd2;
30 platforms = platforms.linux ++ platforms.darwin;
31 maintainers = with maintainers; [ commandodev ];
32 };
33}