wqy_microhei: use installFonts hook

This commit is contained in:
SkohTV
2026-04-01 13:08:19 -04:00
parent 29e9f8761f
commit c04e0bf636
+2 -7
View File
@@ -2,6 +2,7 @@
lib,
stdenvNoCC,
fetchurl,
installFonts,
}:
stdenvNoCC.mkDerivation rec {
@@ -13,13 +14,7 @@ stdenvNoCC.mkDerivation rec {
hash = "sha256-KAKsgCOqNqZupudEWFTjoHjTd///QhaTQb0jeHH3IT4=";
};
installPhase = ''
runHook preInstall
install -Dm644 wqy-microhei.ttc $out/share/fonts/wqy-microhei.ttc
runHook postInstall
'';
nativeBuildInputs = [ installFonts ];
meta = {
description = "Chinese Unicode font optimized for screen display";