hubot-sans: use installFonts hook

This commit is contained in:
SkohTV
2026-04-01 09:55:50 -04:00
parent 3eb5a62e72
commit 683f35b5e7
+2 -8
View File
@@ -2,6 +2,7 @@
lib,
fetchzip,
stdenvNoCC,
installFonts,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
@@ -14,14 +15,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
stripRoot = false;
};
installPhase = ''
runHook preInstall
install -Dm644 Hubot\ Sans/TTF/*.ttf -t $out/share/fonts/truetype/
install -Dm644 Hubot\ Sans/OTF/*.otf -t $out/share/fonts/opentype/
runHook postInstall
'';
nativeBuildInputs = [ installFonts ];
meta = {
description = "Variable font from GitHub";