From ec498cf0222840daa39ea913cbaeaee75296cad8 Mon Sep 17 00:00:00 2001 From: Luca Bruno Date: Tue, 5 May 2015 18:02:18 +0200 Subject: [PATCH] openldap: fix broken .la files --- pkgs/development/libraries/openldap/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/libraries/openldap/default.nix b/pkgs/development/libraries/openldap/default.nix index 8ab9becf3461..3513d83e8679 100644 --- a/pkgs/development/libraries/openldap/default.nix +++ b/pkgs/development/libraries/openldap/default.nix @@ -18,6 +18,13 @@ stdenv.mkDerivation rec { dontPatchELF = 1; # !!! + # Fixup broken libtool + preFixup = '' + sed -e 's,-lsasl2,-L${cyrus_sasl}/lib -lsasl2,' \ + -e 's,-lssl,-L${openssl}/lib -lssl,' \ + -i $out/lib/libldap.la -i $out/lib/libldap_r.la + ''; + meta = with stdenv.lib; { homepage = http://www.openldap.org/; description = "An open source implementation of the Lightweight Directory Access Protocol";