diff --git a/pkgs/applications/networking/mailreaders/mutt/default.nix b/pkgs/applications/networking/mailreaders/mutt/default.nix index 86e6873f4b48..fbc9a08bd68f 100644 --- a/pkgs/applications/networking/mailreaders/mutt/default.nix +++ b/pkgs/applications/networking/mailreaders/mutt/default.nix @@ -14,16 +14,21 @@ assert saslSupport -> cyrus_sasl != null; stdenv.mkDerivation { name = "mutt-1.5.20"; + src = fetchurl { url = ftp://ftp.mutt.org/mutt/devel/mutt-1.5.20.tar.gz; sha256 = "15m7m419r82awx4mr4nam25m0kpg0bs9vw1z4a4mrzvlkl3zqycm"; }; + + patches = [ ./openssl.patch ]; + buildInputs = [ ncurses which perl (if headerCache then gdbm else null) (if sslSupport then openssl else null) (if saslSupport then cyrus_sasl else null) ]; + configureFlags = [ "--with-mailpath=" "--enable-smtp" # The next allows building mutt without having anything setgid diff --git a/pkgs/applications/networking/mailreaders/mutt/openssl.patch b/pkgs/applications/networking/mailreaders/mutt/openssl.patch new file mode 100644 index 000000000000..6476075d67de --- /dev/null +++ b/pkgs/applications/networking/mailreaders/mutt/openssl.patch @@ -0,0 +1,15 @@ +Fixes a compilation problem with OpenSSL 1.0.0. +From http://www.freebsd.org/cgi/query-pr.cgi?pr=146261 + +diff -ru -x '*~' mutt-1.5.20-orig/mutt_ssl.c mutt-1.5.20/mutt_ssl.c +--- mutt-1.5.20-orig/mutt_ssl.c 2009-06-10 07:08:29.000000000 +0200 ++++ mutt-1.5.20/mutt_ssl.c 2010-07-24 10:46:08.000000000 +0200 +@@ -652,7 +652,7 @@ + char *buf = NULL; + int bufsize; + /* needed to get the DNS subjectAltNames: */ +- STACK *subj_alt_names; ++ STACK_OF(GENERAL_NAME) *subj_alt_names; + int subj_alt_names_count; + GENERAL_NAME *subj_alt_name; + /* did we find a name matching hostname? */