Skip to content

Commit 53abe0f

Browse files
authored
emacs: patch mailcap.el to find pkgs.mailcap (#387185)
2 parents df85f5d + 3761a22 commit 53abe0f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pkgs/applications/editors/emacs/make-emacs.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
libxml2,
4747
llvmPackages_14,
4848
m17n_lib,
49+
mailcap,
4950
mailutils,
5051
makeWrapper,
5152
motif,
@@ -244,6 +245,14 @@ mkDerivation (finalAttrs: {
244245
done
245246
''
246247

248+
''
249+
substituteInPlace lisp/net/mailcap.el \
250+
--replace-fail '"/etc/mime.types"' \
251+
'"/etc/mime.types" "${mailcap}/etc/mime.types"' \
252+
--replace-fail '("/etc/mailcap" system)' \
253+
'("/etc/mailcap" system) ("${mailcap}/etc/mailcap" system)'
254+
''
255+
247256
""
248257
];
249258

0 commit comments

Comments
 (0)