mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
9217c7995c
This revertse26188938c
and77487fe661
CC #3515.
14 lines
412 B
Nix
14 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
|
|
''
|