mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
xquartz: Allow extra font directories to be passed
This commit is contained in:
parent
d018f767e1
commit
9ae8af51c5
1 changed files with 7 additions and 4 deletions
|
@ -2,6 +2,8 @@
|
|||
, quartz-wm, fontconfig, xlsfonts, xfontsel
|
||||
, ttf_bitstream_vera, freefont_ttf, liberation_ttf
|
||||
, shell ? "${bashInteractive}/bin/bash"
|
||||
, unfreeFonts ? false
|
||||
, extraFontDirs ? []
|
||||
}:
|
||||
|
||||
# ------------
|
||||
|
@ -60,15 +62,16 @@ let
|
|||
sudo launchctl load -w /Library/LaunchDaemons/$daemonName
|
||||
'';
|
||||
fontDirs = [
|
||||
xorg.fontbhlucidatypewriter100dpi
|
||||
xorg.fontbhlucidatypewriter75dpi
|
||||
ttf_bitstream_vera
|
||||
freefont_ttf
|
||||
liberation_ttf
|
||||
xorg.fontbh100dpi
|
||||
xorg.fontmiscmisc
|
||||
xorg.fontcursormisc
|
||||
];
|
||||
] ++ lib.optionals unfreeFonts [
|
||||
xorg.fontbhlucidatypewriter100dpi
|
||||
xorg.fontbhlucidatypewriter75dpi
|
||||
xorg.fontbh100dpi
|
||||
] ++ extraFontDirs;
|
||||
fontsConf = makeFontsConf {
|
||||
fontDirectories = fontDirs ++ [
|
||||
"/Library/Fonts"
|
||||
|
|
Loading…
Reference in a new issue