edusong: use installFonts hook

This commit is contained in:
Edward
2026-04-10 14:41:58 +08:00
parent af2d14c5be
commit 8d03b42f15
+2 -4
View File
@@ -2,6 +2,7 @@
stdenvNoCC,
lib,
fetchzip,
installFonts,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
@@ -14,10 +15,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
hash = "sha256-+wH6I0sOfzytstDNT81LMuqknGQuYekl31e1tYaDvRg=";
};
installPhase = ''
mkdir -p $out/share/fonts/
mv eduSong_Unicode*.ttf $out/share/fonts/eduSong_Unicode\(202412\).ttf
'';
nativeBuildInputs = [ installFonts ];
meta = {
description = "MOE Song font, a Song-style Chinese character typeface";