Merge pull request #99373 from 7c6f434c/xdummy-fix-unfree
xdummy: make unfree fonts optional; see also #99136
This commit is contained in:
commit
bb4060dea0
@ -1,4 +1,5 @@
|
|||||||
{ writeText, writeScriptBin, xorg, xkeyboard_config, runtimeShell }:
|
{ writeText, writeScriptBin, xorg, xkeyboard_config, runtimeShell
|
||||||
|
, unfreeFonts ? false, lib}:
|
||||||
|
|
||||||
let
|
let
|
||||||
xorgConfig = writeText "dummy-xorg.conf" ''
|
xorgConfig = writeText "dummy-xorg.conf" ''
|
||||||
@ -23,11 +24,13 @@ let
|
|||||||
XkbDir "${xkeyboard_config}/share/X11/xkb"
|
XkbDir "${xkeyboard_config}/share/X11/xkb"
|
||||||
FontPath "${xorg.fontadobe75dpi}/lib/X11/fonts/75dpi"
|
FontPath "${xorg.fontadobe75dpi}/lib/X11/fonts/75dpi"
|
||||||
FontPath "${xorg.fontadobe100dpi}/lib/X11/fonts/100dpi"
|
FontPath "${xorg.fontadobe100dpi}/lib/X11/fonts/100dpi"
|
||||||
|
FontPath "${xorg.fontmiscmisc}/lib/X11/fonts/misc"
|
||||||
|
FontPath "${xorg.fontcursormisc}/lib/X11/fonts/misc"
|
||||||
|
${lib.optionalString unfreeFonts ''
|
||||||
FontPath "${xorg.fontbhlucidatypewriter75dpi}/lib/X11/fonts/75dpi"
|
FontPath "${xorg.fontbhlucidatypewriter75dpi}/lib/X11/fonts/75dpi"
|
||||||
FontPath "${xorg.fontbhlucidatypewriter100dpi}/lib/X11/fonts/100dpi"
|
FontPath "${xorg.fontbhlucidatypewriter100dpi}/lib/X11/fonts/100dpi"
|
||||||
FontPath "${xorg.fontbh100dpi}/lib/X11/fonts/100dpi"
|
FontPath "${xorg.fontbh100dpi}/lib/X11/fonts/100dpi"
|
||||||
FontPath "${xorg.fontmiscmisc}/lib/X11/fonts/misc"
|
''}
|
||||||
FontPath "${xorg.fontcursormisc}/lib/X11/fonts/misc"
|
|
||||||
EndSection
|
EndSection
|
||||||
|
|
||||||
Section "Module"
|
Section "Module"
|
||||||
|
Loading…
Reference in New Issue
Block a user