2007-08-06 13:18:55 +01:00
|
|
|
{ stdenv, fetchurl, ncurses, which
|
|
|
|
, sslSupport ? true
|
|
|
|
, imapSupport ? true
|
|
|
|
, openssl ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert sslSupport -> openssl != null;
|
2007-08-05 19:23:53 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "mutt-1.5.15";
|
|
|
|
src = fetchurl {
|
|
|
|
url = ftp://ftp.mutt.org/mutt/devel/mutt-1.5.15.tar.gz;
|
|
|
|
sha256 = "03fa1f45d4743cd395b634d19aebbc2c1918cf6b683e0af51076ccc79f643a9a";
|
|
|
|
};
|
2007-08-06 13:18:55 +01:00
|
|
|
buildInputs = [
|
|
|
|
ncurses which
|
|
|
|
(if sslSupport then openssl else null)
|
|
|
|
];
|
|
|
|
configureFlags = [
|
|
|
|
"--with-mailpath="
|
|
|
|
(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
|
|
|
}
|