From 8e319c5ddac707fb4cb3315f9eadea9a70fc8c84 Mon Sep 17 00:00:00 2001 From: Tim Digel Date: Thu, 6 Oct 2016 09:51:21 +0200 Subject: Add package-option to enable module-support --- pkgs/development/libraries/openldap/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'pkgs/development/libraries/openldap/default.nix') diff --git a/pkgs/development/libraries/openldap/default.nix b/pkgs/development/libraries/openldap/default.nix index a99cc51de4a..b197236a649 100644 --- a/pkgs/development/libraries/openldap/default.nix +++ b/pkgs/development/libraries/openldap/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, openssl, cyrus_sasl, db, groff }: +{ stdenv, fetchurl, openssl, cyrus_sasl, db, groff, libtool }: stdenv.mkDerivation rec { name = "openldap-2.4.44"; @@ -13,11 +13,12 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - buildInputs = [ openssl cyrus_sasl db groff ]; + buildInputs = [ openssl cyrus_sasl db groff libtool ]; configureFlags = [ "--enable-overlays" "--disable-dependency-tracking" # speeds up one-time build + "--enable-modules" ] ++ stdenv.lib.optional (openssl == null) "--without-tls" ++ stdenv.lib.optional (cyrus_sasl == null) "--without-cyrus-sasl" ++ stdenv.lib.optional stdenv.isFreeBSD "--with-pic"; @@ -36,6 +37,10 @@ stdenv.mkDerivation rec { rm -r libraries/*/.libs ''; + postInstall = '' + chmod +x $out/lib/*.so + ''; + meta = with stdenv.lib; { homepage = http://www.openldap.org/; description = "An open source implementation of the Lightweight Directory Access Protocol"; -- cgit 1.4.1