vista-fonts: rename from vistafonts (#379048)

This commit is contained in:
Pol Dellaiera
2025-02-05 14:58:15 +01:00
committed by GitHub
7 changed files with 34 additions and 7 deletions
@@ -13,16 +13,22 @@ stdenvNoCC.mkDerivation {
url = "https://web.archive.org/web/20161221192937if_/http://download.microsoft.com/download/d/6/e/d6e2ff26-5821-4f35-a18b-78c963b1535d/VistaFont_CHS.EXE";
# Alternative mirror:
# http://www.eeo.cn/download/font/VistaFont_CHS.EXE
sha256 = "1qwm30b8aq9piyqv07hv8b5bac9ms40rsdf8pwix5dyk8020i8xi";
hash = "sha256-saMIBEDTt9Ijv8g1nQHRNTG1ykIbHrCxjzdhhRYYleM=";
};
nativeBuildInputs = [ cabextract ];
unpackPhase = ''
runHook preUnpack
cabextract --lowercase --filter '*.TTF' $src
runHook postUnpack
'';
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts/truetype
cp *.ttf $out/share/fonts/truetype
@@ -31,6 +37,8 @@ stdenvNoCC.mkDerivation {
mkdir -p $out/etc/fonts/conf.d
substitute ${./no-op.conf} $out/etc/fonts/conf.d/30-msyahei.conf \
--subst-var-by fontname "Microsoft YaHei"
runHook postInstall
'';
meta = {
@@ -11,16 +11,22 @@ stdenvNoCC.mkDerivation {
src = fetchurl {
url = "https://download.microsoft.com/download/7/6/b/76bd7a77-be02-47f3-8472-fa1de7eda62f/VistaFont_CHT.EXE";
sha256 = "sha256-fSnbbxlMPzbhFSQyKxQaS5paiWji8njK7tS8Eppsj6g=";
hash = "sha256-fSnbbxlMPzbhFSQyKxQaS5paiWji8njK7tS8Eppsj6g=";
};
nativeBuildInputs = [ cabextract ];
unpackPhase = ''
runHook preUnpack
cabextract --lowercase --filter '*.TTF' $src
runHook postUnpack
'';
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts/truetype
cp *.ttf $out/share/fonts/truetype
@@ -29,17 +35,19 @@ stdenvNoCC.mkDerivation {
mkdir -p $out/etc/fonts/conf.d
substitute ${./no-op.conf} $out/etc/fonts/conf.d/30-msjhenghei.conf \
--subst-var-by fontname "Microsoft JhengHei"
runHook postInstall
'';
meta = with lib; {
meta = {
description = "TrueType fonts from Microsoft Windows Vista For Traditional Chinese (Microsoft JhengHei)";
homepage = "https://www.microsoft.com/typography/fonts/family.aspx";
license = licenses.unfree;
maintainers = with maintainers; [ atkinschang ];
license = lib.licenses.unfree;
maintainers = with lib.maintainers; [ atkinschang ];
# Set a non-zero priority to allow easy overriding of the
# fontconfig configuration files.
priority = 5;
platforms = platforms.all;
platforms = lib.platforms.all;
};
}
@@ -11,18 +11,24 @@ stdenvNoCC.mkDerivation {
src = fetchurl {
url = "mirror://sourceforge/mscorefonts2/cabs/PowerPointViewer.exe";
sha256 = "07vhjdw8iip7gxk6wvp4myhvbn9619g10j9qvpbzz4ihima57ry4";
hash = "sha256-xOdTVI0wkv/X3ThJEF4KJtm1oa/kbm5mf+fGiHiTcB8=";
};
nativeBuildInputs = [ cabextract ];
unpackPhase = ''
runHook preUnpack
cabextract --lowercase --filter ppviewer.cab $src
cabextract --lowercase --filter '*.TTF' ppviewer.cab
cabextract --lowercase --filter '*.TTC' ppviewer.cab
runHook postUnpack
'';
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts/truetype
cp *.ttf *.ttc $out/share/fonts/truetype
@@ -33,6 +39,8 @@ stdenvNoCC.mkDerivation {
substitute ${./no-op.conf} $out/etc/fonts/conf.d/30-''${name,,}.conf \
--subst-var-by fontname $name
done
runHook postInstall
'';
meta = {
+3
View File
@@ -1482,6 +1482,9 @@ mapAliases {
viper4linux-gui = throw "'viper4linux-gui' was removed as it is broken and not maintained upstream"; # Added 2024-12-16
viper4linux = throw "'viper4linux' was removed as it is broken and not maintained upstream"; # Added 2024-12-16
virtscreen = throw "'virtscreen' has been removed, as it was broken and unmaintained"; # Added 2024-10-17
vistafonts = vista-fonts; # Added 2025-02-03
vistafonts-chs = vista-fonts-chs; # Added 2025-02-03
vistafonts-cht = vista-fonts-cht; # Added 2025-02-03
vkBasalt = vkbasalt; # Added 2022-11-22
vkdt-wayland = vkdt; # Added 2024-04-19
void = throw "'void' has been removed due to lack of upstream maintenance"; # Added 2025-01-25