diff options
author | Peter Hoeg <peter@hoeg.com> | 2017-11-16 10:41:48 +0800 |
---|---|---|
committer | Peter Hoeg <peter@hoeg.com> | 2017-11-16 10:43:37 +0800 |
commit | dc7ea3f94ff40a8eb127b053d18a7ab0d43e0b1d (patch) | |
tree | 678a0aff91e1070b245a129e6e80059978489f01 /pkgs/applications/networking/mailreaders | |
parent | 68a703b4059a59e8411db7e01b1a308fce5ac561 (diff) | |
download | nixlib-dc7ea3f94ff40a8eb127b053d18a7ab0d43e0b1d.tar nixlib-dc7ea3f94ff40a8eb127b053d18a7ab0d43e0b1d.tar.gz nixlib-dc7ea3f94ff40a8eb127b053d18a7ab0d43e0b1d.tar.bz2 nixlib-dc7ea3f94ff40a8eb127b053d18a7ab0d43e0b1d.tar.lz nixlib-dc7ea3f94ff40a8eb127b053d18a7ab0d43e0b1d.tar.xz nixlib-dc7ea3f94ff40a8eb127b053d18a7ab0d43e0b1d.tar.zst nixlib-dc7ea3f94ff40a8eb127b053d18a7ab0d43e0b1d.zip |
neomutt: specify path to mime.types
Neomutt will by default look for /etc/mime.types which isn't present in order to map file extensions to mime types. If this file isn't found, and a message has a png attached with application/octet-stream mime type, neomutt will not know what to do with it.
Diffstat (limited to 'pkgs/applications/networking/mailreaders')
-rw-r--r-- | pkgs/applications/networking/mailreaders/neomutt/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/networking/mailreaders/neomutt/default.nix b/pkgs/applications/networking/mailreaders/neomutt/default.nix index 2126d00d6128..610003ec96b8 100644 --- a/pkgs/applications/networking/mailreaders/neomutt/default.nix +++ b/pkgs/applications/networking/mailreaders/neomutt/default.nix @@ -42,6 +42,10 @@ in stdenv.mkDerivation rec { --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 + + # allow neomutt to map attachments to their proper mime.types if specified wrongly + substituteInPlace sendlib.c \ + --replace /etc/mime.types $out/share/doc/neomutt/mime.types ''; configureFlags = [ |