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