fontconfig: document some limitations of the cache
This commit is contained in:
@@ -14,6 +14,10 @@ let
|
|||||||
# and that needs to either be added to the sandbox of *every* app,
|
# and that needs to either be added to the sandbox of *every* app,
|
||||||
# or font-heavy apps are several *seconds* slower to launch.
|
# or font-heavy apps are several *seconds* slower to launch.
|
||||||
#
|
#
|
||||||
|
# N.B.: fc-cache produces output based on the architecture it's run on,
|
||||||
|
# e.g. /var/fontconfig/cache/<hash>-aarch64.cache-9 or <hash>-x86_64.cache-9
|
||||||
|
# this means we'd better emulate it -- don't run the host binary.
|
||||||
|
#
|
||||||
# TODO: upstream this into `make-fonts-cache.nix`?
|
# TODO: upstream this into `make-fonts-cache.nix`?
|
||||||
cache = (pkgs.makeFontsCache { fontDirectories = config.fonts.packages; }).overrideAttrs (upstream: {
|
cache = (pkgs.makeFontsCache { fontDirectories = config.fonts.packages; }).overrideAttrs (upstream: {
|
||||||
buildCommand = lib.replaceStrings
|
buildCommand = lib.replaceStrings
|
||||||
|
Reference in New Issue
Block a user