khmeros: use installFonts hook

This commit is contained in:
Yiyu Zhou
2026-03-02 15:46:00 -08:00
parent 889796f814
commit 6bc760717c

View File

@@ -2,6 +2,7 @@
lib,
stdenvNoCC,
fetchurl,
installFonts,
}:
stdenvNoCC.mkDerivation rec {
@@ -13,14 +14,7 @@ stdenvNoCC.mkDerivation rec {
hash = "sha256-gBcM9YHSuhbxvwfQTvywH/5kN921GOyvGtkROcmcBiw=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts
cp *.ttf $out/share/fonts
runHook postInstall
'';
nativeBuildInputs = [ installFonts ];
meta = {
description = "Unicode fonts for the Khmer language";