nixpkgs/pkgs
Jan Tojnar edf2541f02
fontconfig: Only read versioned config dirs
Falling back to unversioned `/etc/fonts/conf.d` when versioned one does not exist
is problematic since it only occurs on non-NixOS systems and those are likely
to have a different version of fontconfig. When those versions use incompatible
elements in the config, apps using fontconfig will crash.

Instead, we are now falling back to the in-package `fonts.conf` file that loads
both the versioned global `conf.d` directory and the in-package `conf.d` since using
upstream settings on non-NixOS is preferable to not being able to use apps there.

In fact, we would not even need to link `fonts.conf`, as the in-package `fonts.conf`
will be always used unless someone creates the global one manually (the option is still
retained if one wants to write a custom NixOS module and to avoid unnecessary stat call on NixOS).

Additionally, since the `fonts.conf` will always load `conf.d` from the package, we no longer
need to install them to sytem `/etc` in the module. This needed some mucking with `50-user.conf`
which disables configs in user directories (a good thing IMO, NixOS module will turn it back on)
but otherwise, it is cleaner. The files are still prioritized by their name, regardless of their location.

See https://github.com/NixOS/nixpkgs/pull/73795#issuecomment-634370125 for more information.
2020-07-11 17:05:13 +02:00
..
applications Merge #91932: thunderbird*: 68.9.0 -> 68.10.0 2020-07-04 20:09:38 +02:00
build-support ocamlPackages.buildOasis: fix handling of installation prefix 2020-07-02 07:13:34 +02:00
common-updater
data Merge pull request #92234 from samuelgrf/update/nixos-wallpapers 2020-07-04 19:27:15 +02:00
desktops evince: remove myself from meta.maintainers 2020-07-04 20:08:45 +02:00
development fontconfig: Only read versioned config dirs 2020-07-11 17:05:13 +02:00
games chocolateDoom: 3.0.0 -> 3.0.1 2020-07-03 04:23:16 +00:00
misc vimPlugins.vim-monokai: init at 2020-06-17 2020-07-03 16:44:48 -07:00
os-specific guvcview: use latest ffmpeg (#92170) 2020-07-04 04:01:00 -04:00
servers mautrix-whatsapp: 0.1.1 -> 0.1.2 2020-07-04 18:33:35 +02:00
shells Merge pull request #92187 from r-ryantm/auto-update/grml-zsh-config 2020-07-04 06:20:32 -05:00
stdenv
test
tools Merge pull request #92239 from r-ryantm/auto-update/bettercap 2020-07-04 13:13:48 -05:00
top-level pythonPackages.detox: remove 2020-07-04 08:53:59 -07:00