raleway: use installFonts hook

This commit is contained in:
Sandesh
2026-05-16 10:24:44 +05:30
parent 74c36ae149
commit 40992269a9
+6 -7
View File
@@ -2,6 +2,7 @@
lib,
fetchzip,
stdenvNoCC,
installFonts,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
@@ -13,14 +14,12 @@ stdenvNoCC.mkDerivation (finalAttrs: {
hash = "sha256-itNHIMoRjiaqYAJoDNetkCquv47VAfel8MAzwsd//Ww=";
};
installPhase = ''
runHook preInstall
outputs = [
"out"
"webfont"
];
install -D -m444 -t $out/share/fonts/truetype $src/static/TTF/*.ttf
install -D -m444 -t $out/share/fonts/opentype $src/static/OTF/*.otf
runHook postInstall
'';
nativeBuildInputs = [ installFonts ];
meta = {
description = "Raleway is an elegant sans-serif typeface family";