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 { stdenv, fetchFromGitHub, which, autoreconfHook, makeWrapper, writeScript, 2 ncurses, perl , cyrus_sasl, gss, gpgme, kerberos, libidn, notmuch, openssl, 3 - lmdb, libxslt, docbook_xsl, docbook_xml_dtd_42 }: 4 5 let 6 muttWrapper = writeScript "mutt" '' ··· 28 buildInputs = [ 29 cyrus_sasl gss gpgme kerberos libidn ncurses 30 notmuch openssl perl lmdb 31 ]; 32 33 nativeBuildInputs = [ ··· 44 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/etc/mime.types 49 ''; 50 51 configureFlags = [ ··· 72 73 postInstall = '' 74 cp ${muttWrapper} $out/bin/mutt 75 - mv $out/share/doc/neomutt/mime.types $out/etc 76 wrapProgram "$out/bin/neomutt" --prefix PATH : "$out/lib/neomutt" 77 ''; 78
··· 1 { stdenv, fetchFromGitHub, which, autoreconfHook, makeWrapper, writeScript, 2 ncurses, perl , cyrus_sasl, gss, gpgme, kerberos, libidn, notmuch, openssl, 3 + lmdb, libxslt, docbook_xsl, docbook_xml_dtd_42, mime-types }: 4 5 let 6 muttWrapper = writeScript "mutt" '' ··· 28 buildInputs = [ 29 cyrus_sasl gss gpgme kerberos libidn ncurses 30 notmuch openssl perl lmdb 31 + mime-types 32 ]; 33 34 nativeBuildInputs = [ ··· 45 done 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 49 substituteInPlace sendlib.c \ 50 + --replace /etc/mime.types ${mime-types}/etc/mime.types 51 ''; 52 53 configureFlags = [ ··· 74 75 postInstall = '' 76 cp ${muttWrapper} $out/bin/mutt 77 wrapProgram "$out/bin/neomutt" --prefix PATH : "$out/lib/neomutt" 78 ''; 79