nixos/fontconfig: Reintroduce unversioned fonts.conf

Turns out lot of software (including Chromium) use bundled fontconfig
so we either need to wrap every one of those, or re-introduce the global unversioned config.
The latter is easier but weakens hermetic configs. But perhaps those are not really worth the effort.
This commit is contained in:
Jan Tojnar 2020-08-13 20:36:11 +02:00
parent d5f6cce7f2
commit 0a4a62459a
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -182,6 +182,9 @@ let
# fonts.conf
ln -s ${pkg.out}/etc/fonts/fonts.conf \
$dst/../fonts.conf
# TODO: remove this legacy symlink once people stop using packages built before #95358 was merged
ln -s /etc/fonts/${pkg.configVersion}/fonts.conf \
$out/etc/fonts/fonts.conf
# fontconfig default config files
ln -s ${pkg.out}/etc/fonts/conf.d/*.conf \