* add SSL and IMAP support to mutt

svn path=/nixpkgs/trunk/; revision=9056
This commit is contained in:
Andres Löh 2007-08-06 12:18:55 +00:00
parent d83c6455d6
commit e539c80d47
2 changed files with 17 additions and 4 deletions

View File

@ -1,4 +1,10 @@
{stdenv, fetchurl, ncurses, which}:
{ stdenv, fetchurl, ncurses, which
, sslSupport ? true
, imapSupport ? true
, openssl ? null
}:
assert sslSupport -> openssl != null;
stdenv.mkDerivation {
name = "mutt-1.5.15";
@ -6,6 +12,13 @@ stdenv.mkDerivation {
url = ftp://ftp.mutt.org/mutt/devel/mutt-1.5.15.tar.gz;
sha256 = "03fa1f45d4743cd395b634d19aebbc2c1918cf6b683e0af51076ccc79f643a9a";
};
buildInputs = [ ncurses which ];
configureFlags = "--with-mailpath=/invalid";
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")
];
}

View File

@ -466,7 +466,7 @@ rec {
};
mutt = import ../applications/networking/mailreaders/mutt {
inherit fetchurl stdenv ncurses which;
inherit fetchurl stdenv ncurses which openssl;
};
ncat = import ../tools/networking/ncat {