nixpkgs/pkgs/development/libraries/fontconfig/make-fonts-conf.nix

15 lines
412 B
Nix
Raw Normal View History

{ 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
''