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