nixpkgs/pkgs/applications/networking/mailreaders/neomutt/default.nix

67 lines
1.7 KiB
Nix
Raw Normal View History

2017-05-07 03:39:08 +01:00
{ stdenv, fetchFromGitHub, which, autoreconfHook, ncurses, perl
2017-06-02 14:41:03 +01:00
, cyrus_sasl, gdbm, gpgme, kerberos, libidn, notmuch, openssl, lmdb, libxslt, docbook_xsl }:
stdenv.mkDerivation rec {
2017-06-02 14:41:03 +01:00
version = "20170602";
name = "neomutt-${version}";
src = fetchFromGitHub {
2017-05-07 03:39:08 +01:00
owner = "neomutt";
repo = "neomutt";
rev = "neomutt-${version}";
2017-06-02 14:41:03 +01:00
sha256 = "0rpvxmv10ypl7la4nmp0s02ixmm9g5pn9g9ms8ygzsix9pa86w45";
};
2017-06-02 14:41:03 +01:00
nativeBuildInputs = [ autoreconfHook docbook_xsl libxslt.bin which ];
buildInputs = [
cyrus_sasl gdbm gpgme kerberos libidn ncurses
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
'';
configureFlags = [
"--enable-debug"
"--enable-gpgme"
"--enable-hcache"
"--enable-imap"
"--enable-notmuch"
"--enable-pgp"
"--enable-pop"
"--enable-sidebar"
"--enable-keywords"
"--enable-smtp"
"--enable-nntp"
2017-01-29 16:17:22 +00:00
"--enable-compressed"
"--with-homespool=mailbox"
"--with-gss"
"--with-mailpath="
"--with-ssl"
"--with-sasl"
"--with-curses"
"--with-regex"
"--with-idn"
2016-12-30 02:59:33 +00:00
"--with-lmdb"
# 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;
meta = with stdenv.lib; {
description = "A small but very powerful text-based mail client";
homepage = http://www.neomutt.org;
license = stdenv.lib.licenses.gpl2Plus;
platforms = platforms.unix;
2016-11-07 05:56:15 +00:00
maintainers = with maintainers; [ cstrahan vrthra erikryb ];
};
}