From 38759debfb314e58daa4b854c958513d412ddfde Mon Sep 17 00:00:00 2001 From: Yiyu Zhou Date: Sun, 1 Mar 2026 21:15:32 -0800 Subject: [PATCH] apl2741-unicode: use installFonts hook --- pkgs/by-name/ap/apl2741-unicode/package.nix | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/ap/apl2741-unicode/package.nix b/pkgs/by-name/ap/apl2741-unicode/package.nix index de232f9fd2fe..c0a7bf7f5d69 100644 --- a/pkgs/by-name/ap/apl2741-unicode/package.nix +++ b/pkgs/by-name/ap/apl2741-unicode/package.nix @@ -2,6 +2,7 @@ lib, stdenvNoCC, fetchFromGitHub, + installFonts, }: stdenvNoCC.mkDerivation { @@ -18,13 +19,7 @@ stdenvNoCC.mkDerivation { dontConfigure = true; dontBuild = true; - installPhase = '' - runHook preInstall - - install -Dm644 -t $out/share/fonts/truetype *.ttf - - runHook postInstall - ''; + nativeBuildInputs = [ installFonts ]; meta = { description = "APL font based on Adrian Smith's IBM Selectric APL2741 golf-ball font";