3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development
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
..
androidndk-pkgs
arduino
beam-modules
bower-modules/generic
chez-modules
compilers Merge pull request #92215 from r-ryantm/auto-update/intel-graphics-compiler 2020-07-04 10:57:58 +02:00
coq-modules coqPackages.equations: 1.2.1 → 1.2.2 2020-06-30 08:51:15 +02:00
dhall-modules
dotnet-modules
em-modules/generic
go-modules
go-packages
guile-modules
haskell-modules hackage-packages.nix: automatic Haskell package set update 2020-07-03 21:29:12 +02:00
idris-modules
interpreters Merge pull request #92222 from r-ryantm/auto-update/jruby 2020-07-03 18:58:13 -05:00
java-modules
libraries fontconfig: Only read versioned config dirs 2020-07-11 17:05:13 +02:00
lisp-modules
lua-modules luaPackages.readline: init at 2.6-0 (#91854) 2020-07-01 17:58:50 +02:00
misc h3: 3.6.3 -> 3.6.4 (#91591) 2020-07-03 00:58:27 -07:00
mobile
node-packages
ocaml-modules ocamlPackages.ocaml_gettext: 0.4.1 → 0.4.2 2020-07-03 09:01:10 +02:00
perl-modules PerconaToolkit: use shortenPerlShebang (#91921) 2020-07-01 18:26:18 -04:00
pharo
pure-modules
python-modules Merge pull request #92279 from jonringer/prawcore-disable-py2 2020-07-04 18:48:44 +02:00
r-modules
ruby-modules
tools aws-sam-cli: 0.44.0 -> 1.0.0rc1 2020-07-04 21:01:32 +10:00
web Merge pull request #92004 from r-ryantm/auto-update/flyctl 2020-07-02 23:18:02 -05:00