nixpkgs/pkgs/development/libraries/fontconfig/make-fonts-conf.nix
Vladimír Čunát 9217c7995c makeFontsConf: give up fontDirectories checks for now
This reverts e26188938c3142 and 77487fe6615f
CC #3515.
2014-08-11 13:53:40 +02:00

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