roboto: use installFonts

This commit is contained in:
pancaek
2026-03-05 11:18:13 -08:00
parent e61b0ea728
commit e1c9f70860
+3 -6
View File
@@ -2,6 +2,7 @@
lib,
stdenvNoCC,
fetchzip,
installFonts,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
@@ -14,13 +15,9 @@ stdenvNoCC.mkDerivation (finalAttrs: {
hash = "sha256-vfn4KmOHHSVYT9XK+mDz5f4s8LnkCAY/IyTa3Rmir2k=";
};
installPhase = ''
runHook preInstall
nativeBuildInputs = [ installFonts ];
install -Dm644 unhinted/static/*.ttf -t $out/share/fonts/truetype
runHook postInstall
'';
sourceRoot = "${finalAttrs.src.name}/unhinted/static";
meta = {
homepage = "https://github.com/googlefonts/roboto-3-classic";