emacs: patch mailcap.el to find pkgs.mailcap (#387185)

This commit is contained in:
Lin Jian 2025-03-06 11:19:54 +08:00 committed by GitHub
commit 53abe0f4b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,6 +46,7 @@
libxml2,
llvmPackages_14,
m17n_lib,
mailcap,
mailutils,
makeWrapper,
motif,
@ -244,6 +245,14 @@ mkDerivation (finalAttrs: {
done
''
''
substituteInPlace lisp/net/mailcap.el \
--replace-fail '"/etc/mime.types"' \
'"/etc/mime.types" "${mailcap}/etc/mime.types"' \
--replace-fail '("/etc/mailcap" system)' \
'("/etc/mailcap" system) ("${mailcap}/etc/mailcap" system)'
''
""
];