summaryrefslogtreecommitdiffstats
path: root/nixos/modules/config/fonts
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2020-08-13 20:04:10 +0200
committerJan Tojnar <jtojnar@gmail.com>2020-08-29 19:16:22 +0200
commitb49a7699701223b804bdbeb9799b7debec695e87 (patch)
tree451173ec6185f03599e6bac90ea93c2d1824ddfb /nixos/modules/config/fonts
parent89401d986c520d28bf4f0f57448b0e6f158c7172 (diff)
fontconfig: get rid of rest of versioned configs
The incompatibility does not seem to exist any more: programs linked against fc 2.12 on fc 2.14 system seem to at least display text, even while printing tons of errors (as long as you generate fc cache manually), and same thing the other way around. Hopefully it will not be an issue in the future.
Diffstat (limited to 'nixos/modules/config/fonts')
-rw-r--r--nixos/modules/config/fonts/fontconfig.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/nixos/modules/config/fonts/fontconfig.nix b/nixos/modules/config/fonts/fontconfig.nix
index 1f1044bc5af8..2e8c4624414d 100644
--- a/nixos/modules/config/fonts/fontconfig.nix
+++ b/nixos/modules/config/fonts/fontconfig.nix
@@ -1,6 +1,6 @@
/*
-Configuration files are linked to /etc/fonts/${pkgs.fontconfig.configVersion}/conf.d/
+Configuration files are linked to /etc/fonts/conf.d/
This module generates a package containing configuration files and link it in /etc/fonts.
@@ -176,15 +176,16 @@ let
confPkg = pkgs.runCommand "fontconfig-conf" {
preferLocalBuild = true;
} ''
- dst=$out/etc/fonts/${pkg.configVersion}/conf.d
+ dst=$out/etc/fonts/conf.d
mkdir -p $dst
# 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
+ mkdir -p $out/etc/fonts/2.11
+ ln -s /etc/fonts/fonts.conf \
+ $out/etc/fonts/2.11/fonts.conf
# fontconfig default config files
ln -s ${pkg.out}/etc/fonts/conf.d/*.conf \