From bb2cff55ae253ed8d57d5136850d00c80dbbf4dc Mon Sep 17 00:00:00 2001 From: Rickard Nilsson Date: Mon, 30 Jul 2012 18:58:54 +0200 Subject: [PATCH] dovecot_2: Enable LDAP support. --- pkgs/servers/mail/dovecot/2.x.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/mail/dovecot/2.x.nix b/pkgs/servers/mail/dovecot/2.x.nix index d500e5c9bd5..1b4fbe7c7cc 100644 --- a/pkgs/servers/mail/dovecot/2.x.nix +++ b/pkgs/servers/mail/dovecot/2.x.nix @@ -1,9 +1,9 @@ -{stdenv, fetchurl, openssl, pam, bzip2, zlib}: +{stdenv, fetchurl, openssl, pam, bzip2, zlib, inotifyTools, openldap}: stdenv.mkDerivation rec { name = "dovecot-2.1.8"; - buildInputs = [openssl pam bzip2 zlib]; + buildInputs = [openssl pam bzip2 zlib inotifyTools openldap]; src = fetchurl { url = "http://dovecot.org/releases/2.1/${name}.tar.gz"; @@ -12,7 +12,10 @@ stdenv.mkDerivation rec { # It will hardcode this for /var/lib/dovecot. # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=626211 - configureFlags = [ "--localstatedir=/var" ]; + configureFlags = [ + "--localstatedir=/var" + "--with-ldap" + ]; meta = { homepage = http://dovecot.org/;