alkalami: use installFonts

This commit is contained in:
Sigmanificient
2026-05-22 00:59:03 +02:00
parent d442039174
commit 76a21af266
+9 -6
View File
@@ -2,6 +2,7 @@
lib,
stdenvNoCC,
fetchzip,
installFonts,
}:
stdenvNoCC.mkDerivation rec {
@@ -13,14 +14,16 @@ stdenvNoCC.mkDerivation rec {
hash = "sha256-ra664VbUKc8XpULCWhLMVnc1mW4pqZvbvwuBvRQRhcY=";
};
installPhase = ''
runHook preInstall
outputs = [
"out"
"webfont"
];
mkdir -p $out/share/{doc/${pname},fonts/truetype}
mv *.ttf $out/share/fonts/truetype/
mv *.txt documentation $out/share/doc/${pname}/
nativeBuildInputs = [ installFonts ];
runHook postInstall
postInstall = ''
mkdir -p $out/share/doc/alkalami
mv *.txt documentation $out/share/doc/alkalami
'';
meta = {