lxgw-wenkai: use installFonts

This commit is contained in:
Guanran Wang
2026-03-03 14:58:08 +08:00
parent c1a23fdddf
commit 465589aa9e
+2 -8
View File
@@ -2,6 +2,7 @@
lib,
stdenvNoCC,
fetchurl,
installFonts,
}:
stdenvNoCC.mkDerivation rec {
@@ -13,14 +14,7 @@ stdenvNoCC.mkDerivation rec {
hash = "sha256-4GWCSMl+gdxnEPa8JPz7c+bWmxP7HaZHj+D0yUDqgVc=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts/truetype
mv *.ttf $out/share/fonts/truetype
runHook postInstall
'';
nativeBuildInputs = [ installFonts ];
meta = {
homepage = "https://lxgw.github.io/";