summary refs log blame commit diff
path: root/pkgs/servers/mail/dovecot/default.nix
blob: 3997370154e4d4955ad0525d8c4c217ef3a471e2 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                                       
 
                         
                          
 
                                                                                                         

                  
                                                           
                                                                    

    

                                                           



                          
 
          
                                     
                                                                                                   
                                                              
                                                
    
 
 
{stdenv, fetchurl, openssl, pam, bzip2, zlib, inotify-tools, openldap}:

stdenv.mkDerivation rec {
  name = "dovecot-2.1.17";

  buildInputs = [openssl bzip2 zlib openldap] ++ stdenv.lib.optionals stdenv.isLinux [pam inotify-tools];

  src = fetchurl {
    url = "http://dovecot.org/releases/2.1/${name}.tar.gz";
    sha256 = "06j2s5bcrmc0dhjsyavqiss3k65p6xn00a7sffpsv6w3yngv777m";
  };

  # 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];
    hydraPlatforms = stdenv.lib.platforms.linux;
  };

}