diff --git a/pkgs/servers/x11/xorg/overrides.nix b/pkgs/servers/x11/xorg/overrides.nix index 0a48fa6950ea..d05ae933d962 100644 --- a/pkgs/servers/x11/xorg/overrides.nix +++ b/pkgs/servers/x11/xorg/overrides.nix @@ -5,7 +5,9 @@ fontmiscmisc = attrs: attrs // { postInstall = '' - ln -s ${xorg.fontalias}/lib/X11/fonts/misc/fonts.alias $out/lib/X11/fonts/misc/fonts.alias + ALIASFILE=${xorg.fontalias}/share/fonts/X11/misc/fonts.alias + test -f $ALIASFILE + ln -s $ALIASFILE $out/lib/X11/fonts/misc/fonts.alias ''; };