committed by
Vladimír Čunát
parent
b772f53acb
commit
0927405a37
@@ -1,13 +1,15 @@
|
||||
{ runCommand, libxslt, fontconfig, fontDirectories }:
|
||||
{ runCommand, libxslt, fontconfig, fontbhttf, fontDirectories }:
|
||||
|
||||
runCommand "fonts.conf"
|
||||
{
|
||||
buildInputs = [ libxslt fontconfig ];
|
||||
inherit fontDirectories;
|
||||
# Add a default font for non-nixos systems. fontbhttf is only about 1mb.
|
||||
fontDirectories = fontDirectories ++ [ fontbhttf ];
|
||||
}
|
||||
''
|
||||
xsltproc --stringparam fontDirectories "$fontDirectories" \
|
||||
--stringparam fontconfig "${fontconfig}" \
|
||||
--stringparam fontconfigConfigVersion "${fontconfig.configVersion}" \
|
||||
--path ${fontconfig}/share/xml/fontconfig \
|
||||
${./make-fonts-conf.xsl} ${fontconfig}/etc/fonts/fonts.conf \
|
||||
> $out
|
||||
|
||||
Reference in New Issue
Block a user