atkinson-hyperlegible-{next,mono}: use installFonts hook

This commit is contained in:
pancaek
2026-03-01 17:15:20 -08:00
parent f49b469539
commit 11698393d8
2 changed files with 8 additions and 8 deletions
@@ -2,6 +2,7 @@
lib,
stdenvNoCC,
fetchFromGitHub,
installFonts,
}:
stdenvNoCC.mkDerivation {
@@ -15,14 +16,13 @@ stdenvNoCC.mkDerivation {
hash = "sha256-V0zWbNYT3RGO9vjX+GHfO38ywMozcZVJkBZH+8G5sC0=";
};
nativeBuildInputs = [ installFonts ];
dontBuild = true;
# default installPhase invokes python, but we still want the font hook to run
installPhase = ''
runHook preInstall
install -Dm644 -t $out/share/fonts/opentype fonts/otf/*
install -Dm644 -t $out/share/fonts/variable fonts/variable/*
runHook postInstall
'';
@@ -2,6 +2,7 @@
lib,
stdenvNoCC,
fetchFromGitHub,
installFonts,
}:
stdenvNoCC.mkDerivation {
@@ -17,12 +18,11 @@ stdenvNoCC.mkDerivation {
dontBuild = true;
nativeBuildInputs = [ installFonts ];
# default installPhase invokes python, but we still want the font hook to run
installPhase = ''
runHook preInstall
install -Dm644 -t $out/share/fonts/opentype fonts/otf/*
install -Dm644 -t $out/share/fonts/variable fonts/variable/*
runHook postInstall
'';