1 { runCommand, libxslt, fontconfig, dejavu_fonts, fontDirectories }:
3 runCommand "fonts.conf"
5 nativeBuildInputs = [ libxslt ];
6 buildInputs = [ fontconfig ];
7 # Add a default font for non-nixos systems, <1MB and in nixos defaults.
8 fontDirectories = fontDirectories ++ [ dejavu_fonts.minimal ];
11 xsltproc --stringparam fontDirectories "$fontDirectories" \
12 --path ${fontconfig.out}/share/xml/fontconfig \
13 ${./make-fonts-conf.xsl} ${fontconfig.out}/etc/fonts/fonts.conf \