Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / rdkafka / default.nix
blob968cc518132793df8db0e6ee206fa2c9009ab2ce
1 { lib, stdenv, fetchFromGitHub, zlib, zstd, pkg-config, python3, openssl, which }:
3 stdenv.mkDerivation rec {
4   pname = "rdkafka";
5   version = "2.2.0";
7   src = fetchFromGitHub {
8     owner = "confluentinc";
9     repo = "librdkafka";
10     rev = "v${version}";
11     sha256 = "sha256-v/FjnDg22ZNQHmrUsPvjaCs4UQ/RPAxQdg9i8k6ba/4=";
12   };
14   nativeBuildInputs = [ pkg-config python3 which ];
16   buildInputs = [ zlib zstd openssl ];
18   env.NIX_CFLAGS_COMPILE = "-Wno-error=strict-overflow";
20   postPatch = ''
21     patchShebangs .
22   '';
24   enableParallelBuilding = true;
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   };