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.
commitdc7ea3f94ff40a8eb127b053d18a7ab0d43e0b1d
authorPeter Hoeg <peter@hoeg.com>
dateThu 16 Nov 2017, 10:41 (9 years ago)
parent68a703b
pkgs/applications/networking/mailreaders/neomutt/default.nix+4
@@ -42,6 +42,10 @@ in stdenv.mkDerivation rec {
4242 --replace http://docbook.sourceforge.net/release/xsl/current ${docbook_xsl}/share/xml/docbook-xsl \
4343 --replace http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd ${docbook_xml_dtd_42}/xml/dtd/docbook/docbookx.dtd
4444 done
45+
46+ # allow neomutt to map attachments to their proper mime.types if specified wrongly
47+ substituteInPlace sendlib.c \
48+ --replace /etc/mime.types $out/share/doc/neomutt/mime.types
4549 '';
4650
4751 configureFlags = [