git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #31791 from peterhoeg/f/neomutt

neomutt: use mime.types from mime_types

commit6a83ee4af814cde7e353513f321502d4d030da89 authorGraham Christensen <graham@grahamc.com> dateSun 19 Nov 2017, 19:36 (9 years ago) parentc97d90bf16bd1c
1 file changed+4−3
pkgs/applications/networking/mailreaders/neomutt/default.nix+4−3
pkgs/applications/networking/mailreaders/neomutt/default.nix+4−3
@@ -1,6 +1,6 @@
11{ stdenv, fetchFromGitHub, which, autoreconfHook, makeWrapper, writeScript,
22ncurses, 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 }:
44
55let
66 muttWrapper = writeScript "mutt" ''
@@ -28,6 +28,7 @@ in stdenv.mkDerivation rec {
2828 buildInputs = [
2929 cyrus_sasl gss gpgme kerberos libidn ncurses
3030 notmuch openssl perl lmdb
31+ mime-types
3132 ];
3233
3334 nativeBuildInputs = [
@@ -44,8 +45,9 @@ in stdenv.mkDerivation rec {
4445 done
4546
4647 # 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
4749 substituteInPlace sendlib.c \
48− --replace /etc/mime.types $out/etc/mime.types
50+ --replace /etc/mime.types ${mime-types}/etc/mime.types
4951 '';
5052
5153 configureFlags = [
@@ -72,7 +74,6 @@ in stdenv.mkDerivation rec {
7274
7375 postInstall = ''
7476 cp ${muttWrapper} $out/bin/mutt
75− mv $out/share/doc/neomutt/mime.types $out/etc
7677 wrapProgram "$out/bin/neomutt" --prefix PATH : "$out/lib/neomutt"
7778 '';
7879