python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / rdkafka / default.nix
blob2a00d967610039d3768df9ab573f3bc9dfd7275c
1 { lib, stdenv, fetchFromGitHub, zlib, zstd, pkg-config, python3, openssl, which }:
3 stdenv.mkDerivation rec {
4   pname = "rdkafka";
5   version = "1.9.2";
7   src = fetchFromGitHub {
8     owner = "edenhill";
9     repo = "librdkafka";
10     rev = "v${version}";
11     sha256 = "sha256-G6rTvb2Z2O1Df5/6upEB9Eh049sx+LWhhDKvsZdDqsc=";
12   };
14   nativeBuildInputs = [ pkg-config python3 which ];
16   buildInputs = [ zlib zstd openssl ];
18   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/edenhill/librdkafka";
29     license = licenses.bsd2;
30     platforms = platforms.linux ++ platforms.darwin;
31     maintainers = with maintainers; [ commandodev ];
32   };