2014-09-27 19:08:45 +01:00
|
|
|
{ runCommand, libxslt, fontconfig, fontbhttf, fontDirectories }:
|
2008-07-03 15:27:19 +01:00
|
|
|
|
|
|
|
runCommand "fonts.conf"
|
2014-04-29 11:25:29 +01:00
|
|
|
{
|
|
|
|
buildInputs = [ libxslt fontconfig ];
|
2014-09-27 19:08:45 +01:00
|
|
|
# Add a default font for non-nixos systems. fontbhttf is only about 1mb.
|
|
|
|
fontDirectories = fontDirectories ++ [ fontbhttf ];
|
2008-07-03 15:27:19 +01:00
|
|
|
}
|
|
|
|
''
|
|
|
|
xsltproc --stringparam fontDirectories "$fontDirectories" \
|
2015-10-05 11:23:02 +01:00
|
|
|
--stringparam fontconfig "${fontconfig.out}" \
|
2014-09-27 19:08:45 +01:00
|
|
|
--stringparam fontconfigConfigVersion "${fontconfig.configVersion}" \
|
2015-10-05 11:23:02 +01:00
|
|
|
--path ${fontconfig.out}/share/xml/fontconfig \
|
|
|
|
${./make-fonts-conf.xsl} ${fontconfig.out}/etc/fonts/fonts.conf \
|
2008-07-03 15:27:19 +01:00
|
|
|
> $out
|
|
|
|
''
|