summary refs log tree commit diff
path: root/pkgs/servers/mail/dovecot/2.x.nix
blob: 294a58b4f24b6010f3ef4511d3a1b708a1fb4da9 (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
{stdenv, fetchurl, openssl, pam, bzip2, zlib}:

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

  buildInputs = [openssl pam bzip2 zlib];

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

  # It will hardcode this for /var/lib/dovecot.
  # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=626211
  configureFlags = [ "--localstatedir=/var" ];

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