From 993deed7ab862c9657302e9ba7dd5169b6178729 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Mon, 15 Jun 2020 14:12:47 +0200 Subject: [PATCH] fontconfig: Load fonts also from FHS paths With previous patch, we no longer load non-versioned fonts.conf file to avoid incompatibilities but this also means fontconfig will not load system-wide installed fonts on non-NixOS systems. As a compromise, let's hardcode the FHS font paths to the built-in config so that the system fonts work there. Unlike with the system config we do not need to worry about compatibility as incompatible font files will be simply ignored. Of course there will still be disparity if the system install fonts to some other location than these two but I am afraid this is the best we can do. See https://github.com/NixOS/nixpkgs/pull/73795#issuecomment-635771967 for discussion. --- pkgs/development/libraries/fontconfig/make-fonts-conf.xsl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/libraries/fontconfig/make-fonts-conf.xsl b/pkgs/development/libraries/fontconfig/make-fonts-conf.xsl index 199cd1fd9e9..6ec2e7ab515 100644 --- a/pkgs/development/libraries/fontconfig/make-fonts-conf.xsl +++ b/pkgs/development/libraries/fontconfig/make-fonts-conf.xsl @@ -43,6 +43,11 @@ ~/.nix-profile/lib/X11/fonts ~/.nix-profile/share/fonts + + + /usr/share/fonts + /usr/local/share/fonts + /nix/var/nix/profiles/default/lib/X11/fonts /nix/var/nix/profiles/default/share/fonts