Unverified Commit 073dd5c2 authored by Ulrik Strid's avatar Ulrik Strid Committed by GitHub
Browse files

microsoft-edge: fix CJK fonts by default (#492617)

parents 7f6dec29 cfd2e6fb
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -90,6 +90,11 @@
  libsecret,
  # Edge Specific
  libuuid,

  # Fonts (See issue #463615)
  makeFontsConf,
  noto-fonts-cjk-sans,
  noto-fonts-cjk-serif,
}:
let
  opusWithCustomModes = libopus.override { withCustomModes = true; };
@@ -192,6 +197,13 @@ stdenvNoCC.mkDerivation (finalAttrs: {
  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

@@ -239,6 +251,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
      --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 SSL_CERT_FILE "${cacert}/etc/ssl/certs/ca-bundle.crt" \
      --set CHROME_WRAPPER  "microsoft-edge-$dist" \
      --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true --wayland-text-input-version=3}}" \