{ runCommand, lib, writeText, fontconfig, fontDirectories }: runCommand "fc-cache" rec { buildInputs = [ fontconfig ]; passAsFile = [ "fontDirs" ]; fontDirs = '' ${lib.concatStringsSep "\n" (map (font: "