Add package-option to enable module-support

This commit is contained in:
Tim Digel 2016-10-06 09:51:21 +02:00
parent 3cb116f708
commit 8e319c5dda

View File

@ -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";