From c04e0bf63641db550e6c4fc3fddb3564489143ea Mon Sep 17 00:00:00 2001 From: SkohTV Date: Wed, 1 Apr 2026 13:08:19 -0400 Subject: [PATCH] wqy_microhei: use installFonts hook --- pkgs/by-name/wq/wqy_microhei/package.nix | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/wq/wqy_microhei/package.nix b/pkgs/by-name/wq/wqy_microhei/package.nix index 5abd008355a9..388fcc0fc517 100644 --- a/pkgs/by-name/wq/wqy_microhei/package.nix +++ b/pkgs/by-name/wq/wqy_microhei/package.nix @@ -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";