sniglet: use installFonts hook

This commit is contained in:
SkohTV
2026-04-05 17:08:53 -04:00
parent b84104fe9d
commit 55d514b90e
+7 -6
View File
@@ -2,6 +2,7 @@
lib,
fetchFromGitHub,
stdenvNoCC,
installFonts,
}:
stdenvNoCC.mkDerivation {
@@ -15,14 +16,14 @@ stdenvNoCC.mkDerivation {
hash = "sha256-fLT2hZT9o1Ka30EB/6oWwmalhVJ+swXLRFG99yRWd2c=";
};
installPhase = ''
runHook preInstall
preInstall = "rm webfonts/Sniglet-webfont.ttf";
install -D -m444 -t $out/share/fonts/truetype $src/*.ttf
install -D -m444 -t $out/share/fonts/opentype $src/*.otf
nativeBuildInputs = [ installFonts ];
runHook postInstall
'';
outputs = [
"out"
"webfont"
];
meta = {
description = "Fun rounded display face thats great for headlines";