From 3edc6108c59973e63436b39439d77b75afcdfbb1 Mon Sep 17 00:00:00 2001 From: Lukasz Czyzykowski Date: Tue, 16 May 2017 23:31:52 +0200 Subject: [PATCH] Enables rdkafka compilation on macOS 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 --- pkgs/development/libraries/rdkafka/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/rdkafka/default.nix b/pkgs/development/libraries/rdkafka/default.nix index c80c25381b3..cc7c7a31e1d 100644 --- a/pkgs/development/libraries/rdkafka/default.nix +++ b/pkgs/development/libraries/rdkafka/default.nix @@ -15,6 +15,8 @@ stdenv.mkDerivation rec { NIX_CFLAGS_COMPILE = "-Wno-error=strict-overflow"; + configureFlags = stdenv.lib.optionals stdenv.isDarwin [ "--disable-ssl" ]; + postPatch = '' patchShebangs . ''; @@ -23,7 +25,7 @@ stdenv.mkDerivation rec { description = "librdkafka - Apache Kafka C/C++ client library"; homepage = "https://github.com/edenhill/librdkafka"; license = licenses.bsd2; - platforms = platforms.linux; + platforms = platforms.linux ++ platforms.darwin; maintainers = with maintainers; [ boothead wkennington ]; }; }