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