@ -1,7 +1,19 @@
{ stdenv , fetchFromGitHub , which , autoreconfHook , ncurses , perl
{ stdenv , fetchFromGitHub , which , autoreconfHook , writeScript , ncurses , perl
, cyrus_sasl , gss , gpgme , kerberos , libidn , notmuch , openssl , lmdb , libxslt , docbook_xsl , docbook_xml_dtd_42 } :
stdenv . mkDerivation rec {
let
muttWrapper = writeScript " m u t t " ''
#!${stdenv.shell} -eu
echo ' The neomutt project has renamed the main binary from ` mutt ` to ` neomutt ` . '
echo " "
echo ' This wrapper is provided for compatibility purposes only . You should start calling ` neomutt ` instead . '
echo " "
read - p ' Press any key to launch NeoMutt . . . ' - n1 - s
exec neomutt " $ @ "
'' ;
in stdenv . mkDerivation rec {
version = " 2 0 1 7 1 0 1 3 " ;
name = " n e o m u t t - ${ version } " ;
@ -12,24 +24,35 @@ stdenv.mkDerivation rec {
sha256 = " 0 z n 8 i m q f a 7 6 b x p k p y 1 1 1 c 4 v n 6 v j a r b x c 8 g q v 6 m 1 8 q k k s k 0 l y 2 6 l 1 " ;
} ;
nativeBuildInputs = [ autoreconfHook docbook_xsl docbook_xml_dtd_42 libxslt . bin which ] ;
buildInputs = [
cyrus_sasl gss gpgme kerberos libidn ncurses
notmuch openssl perl lmdb
] ;
nativeBuildInputs = [ autoreconfHook docbook_xsl docbook_xml_dtd_42 libxslt . bin which ] ;
enableParallelBuilding = true ;
postPatch = ''
for f in doc /* . { x m l , x s l } * ; d o
substituteInPlace $ f \
- - replace http://docbook.sourceforge.net/release/xsl/current $ { docbook_xsl } /share/xml/docbook-xsl \
- - replace http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd $ { docbook_xml_dtd_42 } /xml/dtd/docbook/docbookx.dtd
done
'' ;
configureFlags = [
" - - e n a b l e - d e b u g "
" - - e n a b l e - g p g m e "
" - - e n a b l e - n o t m u c h "
" - - w i t h - h o m e s p o o l = m a i l b o x "
" - - w i t h - g s s "
" - - w i t h - m a i l p a t h = "
" - - w i t h - s s l "
" - - w i t h - s a s l "
" - - w i t h - c u r s e s "
" - - w i t h - g s s "
" - - w i t h - h o m e s p o o l = m a i l b o x "
" - - w i t h - i d n "
" - - w i t h - l m d b "
" - - w i t h - m a i l p a t h = "
" - - w i t h - s a s l "
" - - w i t h - s s l "
# Look in $PATH at runtime, instead of hardcoding /usr/bin/sendmail
" a c _ c v _ p a t h _ S E N D M A I L = s e n d m a i l "
@ -40,9 +63,9 @@ stdenv.mkDerivation rec {
# like pgpring, pgpewrap, ...
NIX_LDFLAGS = " - l i d n " ;
configureScript = " . / p r e p a r e " ;
enableParallelBuilding = true ;
postInstall = ''
cp $ { muttWrapper } $ out/bin/mutt
'' ;
meta = with stdenv . lib ; {
description = " A s m a l l b u t v e r y p o w e r f u l t e x t - b a s e d m a i l c l i e n t " ;