···11-{ stdenv, fetchurl, fetchpatch, pkgconfig, freetype, expat, libxslt, fontbhttf
11+{ stdenv, fetchurl, fetchpatch, pkgconfig, freetype, expat, libxslt, dejavu_fonts
22, substituteAll }:
3344/** Font configuration scheme
···4444 configureFlags = [
4545 "--with-cache-dir=/var/cache/fontconfig" # otherwise the fallback is in $out/
4646 "--disable-docs"
4747- # just ~1MB; this is what you get when loading config fails for some reason
4848- "--with-default-fonts=${fontbhttf}"
4747+ # just <1MB; this is what you get when loading config fails for some reason
4848+ "--with-default-fonts=${dejavu_fonts.minimal}"
4949 ];
50505151 # We should find a better way to access the arch reliably.
···66666767 postInstall = ''
6868 cd "$out/etc/fonts"
6969- "${libxslt.bin}/bin/xsltproc" --stringparam fontDirectories "${fontbhttf}" \
6969+ "${libxslt.bin}/bin/xsltproc" --stringparam fontDirectories "${dejavu_fonts.minimal}" \
7070 --stringparam fontconfigConfigVersion "${configVersion}" \
7171 --path $out/share/xml/fontconfig \
7272 ${./make-fonts-conf.xsl} $out/etc/fonts/fonts.conf \