* add SSL and IMAP support to mutt
svn path=/nixpkgs/trunk/; revision=9056
This commit is contained in:
parent
d83c6455d6
commit
e539c80d47
@ -1,4 +1,10 @@
|
|||||||
{stdenv, fetchurl, ncurses, which}:
|
{ stdenv, fetchurl, ncurses, which
|
||||||
|
, sslSupport ? true
|
||||||
|
, imapSupport ? true
|
||||||
|
, openssl ? null
|
||||||
|
}:
|
||||||
|
|
||||||
|
assert sslSupport -> openssl != null;
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "mutt-1.5.15";
|
name = "mutt-1.5.15";
|
||||||
@ -6,6 +12,13 @@ stdenv.mkDerivation {
|
|||||||
url = ftp://ftp.mutt.org/mutt/devel/mutt-1.5.15.tar.gz;
|
url = ftp://ftp.mutt.org/mutt/devel/mutt-1.5.15.tar.gz;
|
||||||
sha256 = "03fa1f45d4743cd395b634d19aebbc2c1918cf6b683e0af51076ccc79f643a9a";
|
sha256 = "03fa1f45d4743cd395b634d19aebbc2c1918cf6b683e0af51076ccc79f643a9a";
|
||||||
};
|
};
|
||||||
buildInputs = [ ncurses which ];
|
buildInputs = [
|
||||||
configureFlags = "--with-mailpath=/invalid";
|
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")
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
@ -466,7 +466,7 @@ rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
mutt = import ../applications/networking/mailreaders/mutt {
|
mutt = import ../applications/networking/mailreaders/mutt {
|
||||||
inherit fetchurl stdenv ncurses which;
|
inherit fetchurl stdenv ncurses which openssl;
|
||||||
};
|
};
|
||||||
|
|
||||||
ncat = import ../tools/networking/ncat {
|
ncat = import ../tools/networking/ncat {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user