From 6bc760717c87d32050eeff8bfd2ffd94addfe4f6 Mon Sep 17 00:00:00 2001 From: Yiyu Zhou Date: Mon, 2 Mar 2026 15:46:00 -0800 Subject: [PATCH] khmeros: use installFonts hook --- pkgs/by-name/kh/khmeros/package.nix | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/pkgs/by-name/kh/khmeros/package.nix b/pkgs/by-name/kh/khmeros/package.nix index 07ba50b5680d..4a78cf57649a 100644 --- a/pkgs/by-name/kh/khmeros/package.nix +++ b/pkgs/by-name/kh/khmeros/package.nix @@ -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";