corefonts: use installFonts

This commit is contained in:
pancaek
2026-06-10 12:27:42 -07:00
parent 0cc9fca110
commit d0dd8b4555
+8 -2
View File
@@ -3,6 +3,7 @@
stdenv,
fetchurl,
cabextract,
installFonts,
}:
let
@@ -76,7 +77,10 @@ stdenv.mkDerivation {
) fonts
);
nativeBuildInputs = [ cabextract ];
nativeBuildInputs = [
cabextract
installFonts
];
buildCommand = ''
for i in $exes; do
@@ -124,7 +128,9 @@ stdenv.mkDerivation {
mv webdings.ttf Webdings.ttf.tmp
mv Webdings.ttf.tmp Webdings.ttf
install -m444 -Dt $out/share/fonts/truetype *.ttf
# using buildCommand means no phases are run
# so we run the function ourselves
installFonts
# Also put the EULA there to be on the safe side.
cp ${eula} $out/share/fonts/truetype/eula.html