times-newer-roman: use installFonts

This commit is contained in:
SystematicError
2026-04-03 17:04:48 +01:00
parent b0b5b28571
commit 3f672122e2
@@ -2,6 +2,7 @@
lib,
stdenvNoCC,
fetchzip,
installFonts,
}:
stdenvNoCC.mkDerivation {
@@ -14,14 +15,7 @@ stdenvNoCC.mkDerivation {
hash = "sha256-wO4rxyJNQyhRLpswCYKXdeiXy5G+iWyxulYCHZb60QM=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts/opentype
cp *.otf $out/share/fonts/opentype
runHook postInstall
'';
nativeBuildInputs = [ installFonts ];
meta = {
description = "Font that looks just like Times New Roman, except each character is 5-10% wider";