diff options
Diffstat (limited to 'pkgs/servers/mail/dovecot/default.nix')
-rw-r--r-- | pkgs/servers/mail/dovecot/default.nix | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/pkgs/servers/mail/dovecot/default.nix b/pkgs/servers/mail/dovecot/default.nix index 70e84fa51b03..cb29c9ebc896 100644 --- a/pkgs/servers/mail/dovecot/default.nix +++ b/pkgs/servers/mail/dovecot/default.nix @@ -1,16 +1,27 @@ -{stdenv, fetchurl - , openssl - , pam -}: +{stdenv, fetchurl, openssl, pam, bzip2, zlib, inotifyTools, openldap}: -stdenv.mkDerivation { - name = "dovecot-1.0.3"; +stdenv.mkDerivation rec { + name = "dovecot-2.1.8"; - buildInputs = [openssl pam]; + buildInputs = [openssl pam bzip2 zlib inotifyTools openldap]; src = fetchurl { - url = http://dovecot.org/releases/1.0/dovecot-1.0.3.tar.gz; - sha256 = "14b3sbvj9xpm5mjwfavwrcwmzfdgian51ncspl8j83cd8j01jdjz"; + url = "http://dovecot.org/releases/2.1/${name}.tar.gz"; + sha256 = "03801f4agcwdpqyg6dfxlga3750pnhk4gaf8m7sjq1qmz2277028"; }; - + + # It will hardcode this for /var/lib/dovecot. + # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=626211 + configureFlags = [ + "--localstatedir=/var" + "--with-ldap" + ]; + + meta = { + homepage = "http://dovecot.org/"; + description = "Open source IMAP and POP3 email server written with security primarily in mind"; + maintainers = with stdenv.lib.maintainers; [viric simons]; + platforms = with stdenv.lib.platforms; linux; + }; + } |