diff --git a/pkgs/development/libraries/fontconfig/default.nix b/pkgs/development/libraries/fontconfig/default.nix index 1b9619813f6d..89fb159c86c7 100644 --- a/pkgs/development/libraries/fontconfig/default.nix +++ b/pkgs/development/libraries/fontconfig/default.nix @@ -13,7 +13,8 @@ stdenv.mkDerivation rec { configureFlags = "--with-confdir=/etc/fonts --with-cache-dir=/var/cache/fontconfig --disable-docs --with-default-fonts="; - installFlags = "CONFDIR=$(out)/etc RUN_FC_CACHE_TEST=false"; + # Don't try to write to /etc/fonts or /var/cache/fontconfig at install time. + installFlags = "CONFDIR=$(out)/etc RUN_FC_CACHE_TEST=false fc_cachedir=$(out)/dummy"; meta = { description = "A library for font customization and configuration";