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

34 lines
826 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, zlib, perl, pkg-config, python, openssl }:
2015-02-03 08:44:01 +00:00
stdenv.mkDerivation rec {
pname = "rdkafka";
2020-12-11 00:39:02 +00:00
version = "1.5.3";
2015-02-03 08:44:01 +00:00
2015-03-11 23:39:36 +00:00
src = fetchFromGitHub {
owner = "edenhill";
repo = "librdkafka";
2017-05-05 02:55:07 +00:00
rev = "v${version}";
2020-12-11 00:39:02 +00:00
sha256 = "12cc7l5vpxyrm8ca0cpm8sdl54hb8dranal8sz55r9y8igz1q1wb";
2015-02-03 08:44:01 +00:00
};
nativeBuildInputs = [ pkg-config ];
2019-09-29 02:56:22 +00:00
2018-04-19 13:20:18 +00:00
buildInputs = [ zlib perl python openssl ];
2015-03-11 23:39:36 +00:00
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";
homepage = "https://github.com/edenhill/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
};
}