mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 09:13:17 +00:00
3edc6108c5
Without --disable-ssl librdkafka ./configure detects that OpenSSL is installed but when it tries to link it fails because the default version is incompatible (1.0.2 vs required 1.1.x). https://github.com/edenhill/librdkafka/issues/49#issuecomment-280219158
32 lines
844 B
Nix
32 lines
844 B
Nix
{ stdenv, fetchFromGitHub, zlib, perl, pkgconfig, python }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "rdkafka-${version}";
|
|
version = "0.9.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "edenhill";
|
|
repo = "librdkafka";
|
|
rev = "v${version}";
|
|
sha256 = "0yp8vmj3yc564hcmhx46ssyn8qayywnsrg4wg67qk6jw967qgwsn";
|
|
};
|
|
|
|
buildInputs = [ zlib perl pkgconfig python ];
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=strict-overflow";
|
|
|
|
configureFlags = stdenv.lib.optionals stdenv.isDarwin [ "--disable-ssl" ];
|
|
|
|
postPatch = ''
|
|
patchShebangs .
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "librdkafka - Apache Kafka C/C++ client library";
|
|
homepage = "https://github.com/edenhill/librdkafka";
|
|
license = licenses.bsd2;
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
maintainers = with maintainers; [ boothead wkennington ];
|
|
};
|
|
}
|