diff --git a/pkgs/by-name/go/google-chrome/package.nix b/pkgs/by-name/go/google-chrome/package.nix index 2a8f4de686ab..038223219dc8 100644 --- a/pkgs/by-name/go/google-chrome/package.nix +++ b/pkgs/by-name/go/google-chrome/package.nix @@ -79,6 +79,11 @@ bzip2, libcap, + # Fonts (See issue #463615) + makeFontsConf, + noto-fonts-cjk-sans, + noto-fonts-cjk-serif, + # Necessary for USB audio devices. libpulseaudio, pulseSupport ? true, @@ -215,6 +220,13 @@ let rpath = lib.makeLibraryPath deps + ":" + lib.makeSearchPathOutput "lib" "lib64" deps; binpath = lib.makeBinPath deps; + fontsConf = makeFontsConf { + fontDirectories = [ + noto-fonts-cjk-sans + noto-fonts-cjk-serif + ]; + }; + installPhase = '' runHook preInstall @@ -266,6 +278,7 @@ let --prefix PATH : "$binpath" \ --suffix PATH : "${lib.makeBinPath [ xdg-utils ]}" \ --prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH:${addDriverRunpath.driverLink}/share" \ + --set FONTCONFIG_FILE "${finalAttrs.fontsConf}" \ --set CHROME_WRAPPER "google-chrome-$dist" \ --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}" \ --add-flags "--simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT'" \