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

34 lines
816 B
Nix
Raw Normal View History

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