2007-08-06 14:18:55 +02:00
|
|
|
{ stdenv, fetchurl, ncurses, which
|
|
|
|
, sslSupport ? true
|
|
|
|
, imapSupport ? true
|
2008-05-13 21:21:09 +02:00
|
|
|
, headerCache ? true
|
|
|
|
, gdbm ? null
|
2007-08-06 14:18:55 +02:00
|
|
|
, openssl ? null
|
|
|
|
}:
|
|
|
|
|
2008-05-13 21:21:09 +02:00
|
|
|
assert headerCache -> gdbm != null;
|
2007-08-06 14:18:55 +02:00
|
|
|
assert sslSupport -> openssl != null;
|
2007-08-05 20:23:53 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2008-05-13 21:21:09 +02:00
|
|
|
name = "mutt-1.5.16";
|
2007-08-05 20:23:53 +02:00
|
|
|
src = fetchurl {
|
2008-05-13 21:21:09 +02:00
|
|
|
url = ftp://ftp.mutt.org/mutt/devel/mutt-1.5.16.tar.gz;
|
|
|
|
sha256 = "825e920b394db6f56fa8deb45977c061331f59d953944e27ff595625bbad3e83";
|
2007-08-05 20:23:53 +02:00
|
|
|
};
|
2007-08-06 14:18:55 +02:00
|
|
|
buildInputs = [
|
|
|
|
ncurses which
|
2008-05-13 21:21:09 +02:00
|
|
|
(if headerCache then gdbm else null)
|
2007-08-06 14:18:55 +02:00
|
|
|
(if sslSupport then openssl else null)
|
|
|
|
];
|
|
|
|
configureFlags = [
|
|
|
|
"--with-mailpath="
|
2008-05-13 21:21:09 +02:00
|
|
|
(if headerCache then "--enable-hcache" else "--disable-hcache")
|
2007-08-06 14:18:55 +02:00
|
|
|
(if sslSupport then "--with-ssl" else "--without-ssl")
|
|
|
|
(if imapSupport then "--enable-imap" else "--disable-imap")
|
|
|
|
];
|
2008-01-30 20:49:42 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.mutt.org;
|
|
|
|
};
|
2007-08-05 20:23:53 +02:00
|
|
|
}
|
2008-05-13 21:21:09 +02:00
|
|
|
|