nixos/fonts: add Noto CJK to default fonts (#521738)

This commit is contained in:
Michael Daniels
2026-06-01 22:56:23 +00:00
committed by GitHub
3 changed files with 2 additions and 27 deletions
+2
View File
@@ -47,6 +47,8 @@ in
gyre-fonts # TrueType substitutes for standard PostScript fonts
liberation_ttf
unifont
noto-fonts-cjk-sans
noto-fonts-cjk-serif
noto-fonts-color-emoji
]
);
-13
View File
@@ -79,11 +79,6 @@
bzip2,
libcap,
# Fonts (See issue #463615)
makeFontsConf,
noto-fonts-cjk-sans,
noto-fonts-cjk-serif,
# Necessary for USB audio devices.
libpulseaudio,
pulseSupport ? true,
@@ -220,13 +215,6 @@ 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
@@ -278,7 +266,6 @@ 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'" \
@@ -90,12 +90,6 @@
libsecret,
# Edge Specific
libuuid,
# Fonts (See issue #463615)
makeFontsConf,
noto-fonts-cjk-sans,
noto-fonts-cjk-serif,
# Create a symlink at $out/bin/microsoft-edge-stable
withSymlink ? true,
}:
@@ -200,13 +194,6 @@ 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
@@ -254,7 +241,6 @@ 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}}" \