9217c7995c
This reverts e26188938c3142 and 77487fe6615f CC #3515.
15 lines
412 B
Nix
15 lines
412 B
Nix
{ runCommand, libxslt, fontconfig, fontDirectories }:
|
|
|
|
runCommand "fonts.conf"
|
|
{
|
|
buildInputs = [ libxslt fontconfig ];
|
|
inherit fontDirectories;
|
|
}
|
|
''
|
|
xsltproc --stringparam fontDirectories "$fontDirectories" \
|
|
--stringparam fontconfig "${fontconfig}" \
|
|
--path ${fontconfig}/share/xml/fontconfig \
|
|
${./make-fonts-conf.xsl} ${fontconfig}/etc/fonts/fonts.conf \
|
|
> $out
|
|
''
|