open-fonts: use installFonts

This commit is contained in:
Rafael Ieda
2026-09-08 15:05:58 -03:00
parent f2aaa10010
commit 5bc2b2bf52

View File

@@ -2,6 +2,7 @@
lib,
stdenvNoCC,
fetchurl,
installFonts,
}:
stdenvNoCC.mkDerivation rec {
@@ -13,14 +14,7 @@ stdenvNoCC.mkDerivation rec {
hash = "sha256-NJKbdrvgZz9G7mjAJYzN7rU/fo2xRFZA2BbQ+A56iPw=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts/truetype
install *.ttf $out/share/fonts/truetype
runHook postInstall
'';
nativeBuildInputs = [ installFonts ];
meta = {
description = "Collection of beautiful free and open source fonts";