Merge pull request #31791 from peterhoeg/f/neomutt

neomutt: use mime.types from mime_types

authored by Graham Christensen and committed by GitHub 6a83ee4a c97d90b3

+4 -3
+4 -3
pkgs/applications/networking/mailreaders/neomutt/default.nix
··· 1 1 { stdenv, fetchFromGitHub, which, autoreconfHook, makeWrapper, writeScript, 2 2 ncurses, perl , cyrus_sasl, gss, gpgme, kerberos, libidn, notmuch, openssl, 3 - lmdb, libxslt, docbook_xsl, docbook_xml_dtd_42 }: 3 + lmdb, libxslt, docbook_xsl, docbook_xml_dtd_42, mime-types }: 4 4 5 5 let 6 6 muttWrapper = writeScript "mutt" '' ··· 28 28 buildInputs = [ 29 29 cyrus_sasl gss gpgme kerberos libidn ncurses 30 30 notmuch openssl perl lmdb 31 + mime-types 31 32 ]; 32 33 33 34 nativeBuildInputs = [ ··· 44 45 done 45 46 46 47 # allow neomutt to map attachments to their proper mime.types if specified wrongly 48 + # and use a far more comprehensive list than the one shipped with neomutt 47 49 substituteInPlace sendlib.c \ 48 - --replace /etc/mime.types $out/etc/mime.types 50 + --replace /etc/mime.types ${mime-types}/etc/mime.types 49 51 ''; 50 52 51 53 configureFlags = [ ··· 72 74 73 75 postInstall = '' 74 76 cp ${muttWrapper} $out/bin/mutt 75 - mv $out/share/doc/neomutt/mime.types $out/etc 76 77 wrapProgram "$out/bin/neomutt" --prefix PATH : "$out/lib/neomutt" 77 78 ''; 78 79