2014-04-29 11:25:29 +01:00
|
|
|
{ runCommand, libxslt, fontconfig, fontDirectories }:
|
2008-07-03 15:27:19 +01:00
|
|
|
|
|
|
|
runCommand "fonts.conf"
|
2014-04-29 11:25:29 +01:00
|
|
|
{
|
|
|
|
buildInputs = [ libxslt fontconfig ];
|
2008-07-03 15:27:19 +01:00
|
|
|
inherit fontDirectories;
|
|
|
|
}
|
|
|
|
''
|
|
|
|
xsltproc --stringparam fontDirectories "$fontDirectories" \
|
|
|
|
--stringparam fontconfig "${fontconfig}" \
|
2014-04-29 11:25:29 +01:00
|
|
|
--path ${fontconfig}/share/xml/fontconfig \
|
2008-07-03 15:27:19 +01:00
|
|
|
${./make-fonts-conf.xsl} ${fontconfig}/etc/fonts/fonts.conf \
|
|
|
|
> $out
|
|
|
|
''
|