* enabled header cache support for mutt

svn path=/nixpkgs/trunk/; revision=11822
This commit is contained in:
Andres Löh 2008-05-13 19:21:09 +00:00
parent 29fb522f0a
commit d54af59148
2 changed files with 10 additions and 4 deletions

View File

@ -1,23 +1,28 @@
{ stdenv, fetchurl, ncurses, which { stdenv, fetchurl, ncurses, which
, sslSupport ? true , sslSupport ? true
, imapSupport ? true , imapSupport ? true
, headerCache ? true
, gdbm ? null
, openssl ? null , openssl ? null
}: }:
assert headerCache -> gdbm != null;
assert sslSupport -> openssl != null; assert sslSupport -> openssl != null;
stdenv.mkDerivation { stdenv.mkDerivation {
name = "mutt-1.5.15"; name = "mutt-1.5.16";
src = fetchurl { src = fetchurl {
url = ftp://ftp.mutt.org/mutt/devel/mutt-1.5.15.tar.gz; url = ftp://ftp.mutt.org/mutt/devel/mutt-1.5.16.tar.gz;
sha256 = "03fa1f45d4743cd395b634d19aebbc2c1918cf6b683e0af51076ccc79f643a9a"; sha256 = "825e920b394db6f56fa8deb45977c061331f59d953944e27ff595625bbad3e83";
}; };
buildInputs = [ buildInputs = [
ncurses which ncurses which
(if headerCache then gdbm else null)
(if sslSupport then openssl else null) (if sslSupport then openssl else null)
]; ];
configureFlags = [ configureFlags = [
"--with-mailpath=" "--with-mailpath="
(if headerCache then "--enable-hcache" else "--disable-hcache")
(if sslSupport then "--with-ssl" else "--without-ssl") (if sslSupport then "--with-ssl" else "--without-ssl")
(if imapSupport then "--enable-imap" else "--disable-imap") (if imapSupport then "--enable-imap" else "--disable-imap")
]; ];
@ -26,3 +31,4 @@ stdenv.mkDerivation {
homepage = http://www.mutt.org; homepage = http://www.mutt.org;
}; };
} }

View File

@ -5554,7 +5554,7 @@ let pkgs = rec {
*/ */
mutt = import ../applications/networking/mailreaders/mutt { mutt = import ../applications/networking/mailreaders/mutt {
inherit fetchurl stdenv ncurses which openssl; inherit fetchurl stdenv ncurses which openssl gdbm;
}; };
msmtp = import ../applications/networking/msmtp { msmtp = import ../applications/networking/msmtp {