spacepaste

  1.  
  2. { stdenv, fetchFromGitHub, which, autoreconfHook, ncurses, perl
  3. , cyrus_sasl, gss, gpgme, kerberos, libidn, notmuch, openssl, lmdb, libxslt,
  4. docbook_xsl, makeWrapper }:
  5. stdenv.mkDerivation rec {
  6. version = "20171027";
  7. name = "neomutt-${version}";
  8. src = fetchFromGitHub {
  9. owner = "neomutt";
  10. repo = "neomutt";
  11. rev = "neomutt-${version}";
  12. sha256 = "0qndszmaihly3pp2wqiqm31nxbv9ys3j05kzffaqhzngfilmar9g";
  13. };
  14. nativeBuildInputs = [
  15. autoreconfHook docbook_xsl libxslt.bin which makeWrapper
  16. ];
  17. buildInputs = [
  18. cyrus_sasl gss gpgme kerberos libidn ncurses
  19. notmuch openssl perl lmdb
  20. ];
  21. postPatch = ''
  22. for f in doc/*.xsl ; do
  23. substituteInPlace $f \
  24. --replace http://docbook.sourceforge.net/release/xsl/current ${docbook_xsl}/share/xml/docbook-xsl
  25. done
  26. '';
  27. configureFlags = [
  28. # Look in $PATH at runtime, instead of hardcoding /usr/bin/sendmail
  29. "ac_cv_path_SENDMAIL=sendmail"
  30. ];
  31. # Fix missing libidn in mutt;
  32. # this fix is ugly since it links all binaries in mutt against libidn
  33. # like pgpring, pgpewrap, ...
  34. NIX_LDFLAGS = "-lidn";
  35. configureScript = "./configure.autosetup";
  36. enableParallelBuilding = true;
  37. meta = with stdenv.lib; {
  38. description = "A small but very powerful text-based mail client";
  39. homepage = http://www.neomutt.org;
  40. license = licenses.gpl2Plus;
  41. maintainers = with maintainers; [ cstrahan erikryb jfrankenau vrthra ];
  42. platforms = platforms.unix;
  43. };
  44. }
  45.