2016-08-29 20:28:50 +00:00
|
|
|
{ runCommand, libxslt, fontconfig, dejavu_fonts, fontDirectories }:
|
2008-07-03 14:27:19 +00:00
|
|
|
|
|
|
|
runCommand "fonts.conf"
|
2014-04-29 10:25:29 +00:00
|
|
|
{
|
2019-03-09 04:55:02 +00:00
|
|
|
nativeBuildInputs = [ libxslt ];
|
|
|
|
buildInputs = [ fontconfig ];
|
2016-08-29 20:28:50 +00:00
|
|
|
# Add a default font for non-nixos systems, <1MB and in nixos defaults.
|
|
|
|
fontDirectories = fontDirectories ++ [ dejavu_fonts.minimal ];
|
2008-07-03 14:27:19 +00:00
|
|
|
}
|
|
|
|
''
|
|
|
|
xsltproc --stringparam fontDirectories "$fontDirectories" \
|
2015-10-05 10:23:02 +00:00
|
|
|
--stringparam fontconfig "${fontconfig.out}" \
|
2014-09-27 18:08:45 +00:00
|
|
|
--stringparam fontconfigConfigVersion "${fontconfig.configVersion}" \
|
2015-10-05 10:23:02 +00:00
|
|
|
--path ${fontconfig.out}/share/xml/fontconfig \
|
|
|
|
${./make-fonts-conf.xsl} ${fontconfig.out}/etc/fonts/fonts.conf \
|
2008-07-03 14:27:19 +00:00
|
|
|
> $out
|
|
|
|
''
|