summary refs log tree commit diff
path: root/pkgs/servers/mail/dovecot/default.nix
blob: 675e2ae7479d12dd9aa6a1a18d9e5906ee0b3e32 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{stdenv, fetchurl, openssl, pam, bzip2, zlib, inotifyTools, openldap}:

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

  buildInputs = [openssl pam bzip2 zlib inotifyTools openldap];

  src = fetchurl {
    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;
  };

}