material-symbols: use installFonts hook

This commit is contained in:
HigherOrderLogic
2026-05-19 01:03:05 +00:00
parent 3831b2d984
commit 0be39eb799
+6 -7
View File
@@ -2,6 +2,7 @@
lib,
stdenvNoCC,
fetchFromGitHub,
installFonts,
unstableGitUpdater,
}:
stdenvNoCC.mkDerivation {
@@ -16,14 +17,12 @@ stdenvNoCC.mkDerivation {
sparseCheckout = [ "variablefont" ];
};
installPhase = ''
runHook preInstall
outputs = [
"out"
"webfont"
];
install -Dm755 variablefont/*.ttf -t $out/share/fonts/TTF
install -Dm755 variablefont/*.woff2 -t $out/share/fonts/woff2
runHook postInstall
'';
nativeBuildInputs = [ installFonts ];
passthru.updateScript = unstableGitUpdater { };