From 15e7acd0cfd06ae4b9d9a421c2bbe4685cf8e004 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Fri, 9 Jan 2015 10:21:04 -0800 Subject: [PATCH] cyrus-sasl: Explicitly define the openssl path cyrus-sasl static libraries require linked binaries to pull in openssl via -lcrypto and -lssl. This is problematic because it does not specify -L${openssl}/lib when not explcitly configure to do so. This patch forces cyrus-sasl to add -L${openssl}/lib to the static libraries which propagates the openssl library path to linked binaries. --- pkgs/development/libraries/cyrus-sasl/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/cyrus-sasl/default.nix b/pkgs/development/libraries/cyrus-sasl/default.nix index 5470797b42f..2be98f3d5e8 100644 --- a/pkgs/development/libraries/cyrus-sasl/default.nix +++ b/pkgs/development/libraries/cyrus-sasl/default.nix @@ -17,6 +17,10 @@ stdenv.mkDerivation rec { patches = [ ./missing-size_t.patch ]; # https://bugzilla.redhat.com/show_bug.cgi?id=906519 patchFlags = "-p0"; + configureFlags = [ + "--with-openssl=${openssl}" + ]; + # Set this variable at build-time to make sure $out can be evaluated. preConfigure = '' configureFlagsArray=( --with-plugindir=$out/lib/sasl2