makeFontsConf: add darwin system fonts (#228619)
This commit is contained in:
parent
7045ea4c43
commit
0949f3cd78
|
@ -1,11 +1,13 @@
|
||||||
{ runCommand, libxslt, fontconfig, dejavu_fonts, fontDirectories }:
|
{ runCommand, stdenv, lib, libxslt, fontconfig, dejavu_fonts, fontDirectories }:
|
||||||
|
|
||||||
runCommand "fonts.conf"
|
runCommand "fonts.conf"
|
||||||
{
|
{
|
||||||
nativeBuildInputs = [ libxslt ];
|
nativeBuildInputs = [ libxslt ];
|
||||||
buildInputs = [ fontconfig ];
|
buildInputs = [ fontconfig ];
|
||||||
# Add a default font for non-nixos systems, <1MB and in nixos defaults.
|
# Add a default font for non-nixos systems, <1MB and in nixos defaults.
|
||||||
fontDirectories = fontDirectories ++ [ dejavu_fonts.minimal ];
|
fontDirectories = fontDirectories ++ [ dejavu_fonts.minimal ]
|
||||||
|
# further non-nixos fonts on darwin
|
||||||
|
++ lib.optionals stdenv.isDarwin [ "/System/Library/Fonts" "/Library/Fonts" "~/Library/Fonts" ];
|
||||||
}
|
}
|
||||||
''
|
''
|
||||||
xsltproc --stringparam fontDirectories "$fontDirectories" \
|
xsltproc --stringparam fontDirectories "$fontDirectories" \
|
||||||
|
|
Loading…
Reference in a new issue