2017-05-07 03:39:08 +01:00
|
|
|
{ stdenv, fetchFromGitHub, which, autoreconfHook, ncurses, perl
|
2017-06-29 03:43:09 +01:00
|
|
|
, cyrus_sasl, gss, gpgme, kerberos, libidn, notmuch, openssl, lmdb, libxslt, docbook_xsl }:
|
2016-04-15 22:01:05 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-09-09 02:30:41 +01:00
|
|
|
version = "20170907";
|
2016-04-15 22:01:05 +01:00
|
|
|
name = "neomutt-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-05-07 03:39:08 +01:00
|
|
|
owner = "neomutt";
|
|
|
|
repo = "neomutt";
|
|
|
|
rev = "neomutt-${version}";
|
2017-09-09 02:30:41 +01:00
|
|
|
sha256 = "0j2k5d77j5dvfh0yqihgvynnxxv2s5lf3pl50dr8b5b4jk04b961";
|
2016-04-15 22:01:05 +01:00
|
|
|
};
|
|
|
|
|
2017-06-02 14:41:03 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook docbook_xsl libxslt.bin which ];
|
|
|
|
buildInputs = [
|
2017-06-29 03:43:09 +01:00
|
|
|
cyrus_sasl gss gpgme kerberos libidn ncurses
|
2017-06-02 14:41:03 +01:00
|
|
|
notmuch openssl perl lmdb
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
for f in doc/*.xsl ; do
|
|
|
|
substituteInPlace $f \
|
|
|
|
--replace http://docbook.sourceforge.net/release/xsl/current ${docbook_xsl}/share/xml/docbook-xsl
|
|
|
|
done
|
|
|
|
'';
|
2016-04-15 22:01:05 +01:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-debug"
|
|
|
|
"--enable-gpgme"
|
|
|
|
"--enable-notmuch"
|
|
|
|
"--with-homespool=mailbox"
|
|
|
|
"--with-gss"
|
|
|
|
"--with-mailpath="
|
|
|
|
"--with-ssl"
|
|
|
|
"--with-sasl"
|
|
|
|
"--with-curses"
|
|
|
|
"--with-idn"
|
2016-12-30 02:59:33 +00:00
|
|
|
"--with-lmdb"
|
2016-04-15 22:01:05 +01:00
|
|
|
|
|
|
|
# Look in $PATH at runtime, instead of hardcoding /usr/bin/sendmail
|
|
|
|
"ac_cv_path_SENDMAIL=sendmail"
|
|
|
|
];
|
|
|
|
|
|
|
|
configureScript = "./prepare";
|
|
|
|
|
2017-06-02 14:41:03 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-04-15 22:01:05 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A small but very powerful text-based mail client";
|
2017-09-09 02:30:41 +01:00
|
|
|
homepage = http://www.neomutt.org;
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2017-06-29 03:43:09 +01:00
|
|
|
maintainers = with maintainers; [ cstrahan erikryb jfrankenau vrthra ];
|
2017-09-09 02:30:41 +01:00
|
|
|
platforms = platforms.unix;
|
2016-04-15 22:01:05 +01:00
|
|
|
};
|
|
|
|
}
|