nixpkgs/pkgs/development/libraries/rdkafka/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
852 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, zlib, zstd, pkg-config, python3, openssl, which }:
2015-02-03 08:44:01 +00:00
stdenv.mkDerivation rec {
pname = "rdkafka";
version = "2.2.0";
2015-02-03 08:44:01 +00:00
2015-03-11 23:39:36 +00:00
src = fetchFromGitHub {
2023-05-05 18:07:46 +00:00
owner = "confluentinc";
2015-03-11 23:39:36 +00:00
repo = "librdkafka";
2017-05-05 02:55:07 +00:00
rev = "v${version}";
sha256 = "sha256-v/FjnDg22ZNQHmrUsPvjaCs4UQ/RPAxQdg9i8k6ba/4=";
2015-02-03 08:44:01 +00:00
};
nativeBuildInputs = [ pkg-config python3 which ];
2019-09-29 02:56:22 +00:00
2021-07-07 08:31:04 +00:00
buildInputs = [ zlib zstd openssl ];
2015-03-11 23:39:36 +00:00
env.NIX_CFLAGS_COMPILE = "-Wno-error=strict-overflow";
2015-03-11 23:39:36 +00:00
postPatch = ''
patchShebangs .
'';
2015-02-03 08:44:01 +00:00
2019-09-29 02:56:22 +00:00
enableParallelBuilding = true;
meta = with lib; {
2015-02-03 08:44:01 +00:00
description = "librdkafka - Apache Kafka C/C++ client library";
2023-05-05 18:07:46 +00:00
homepage = "https://github.com/confluentinc/librdkafka";
2015-02-03 08:44:01 +00:00
license = licenses.bsd2;
platforms = platforms.linux ++ platforms.darwin;
2020-11-25 19:41:31 +00:00
maintainers = with maintainers; [ commandodev ];
2015-02-03 08:44:01 +00:00
};
}