Merge staging-next into staging

This commit is contained in:
github-actions[bot]
2021-03-29 00:15:53 +00:00
committed by GitHub
378 changed files with 3334 additions and 2031 deletions

View File

@@ -1,13 +1,13 @@
{ lib, fetchzip }:
let
version = "2.11";
version = "2.12";
in
fetchzip {
name = "stix-two-${version}";
url = "https://github.com/stipub/stixfonts/raw/v${version}/zipfiles/STIX${builtins.replaceStrings [ "." ] [ "_" ] version}-all.zip";
sha256 = "19ndavx5k85vm6wvq9603kynpgbfddbjiihivffvnbrxwf13h34n";
sha256 = "1a6v8p5zbjlv1gfhph0rzkvnmvxf4n1y0mdrdgng01yyl1nngrn9";
postFetch = ''
mkdir -p $out/share/fonts/

View File

@@ -1,15 +1,23 @@
{ lib, fetchzip, buildPackages }:
{ lib, stdenvNoCC, fetchurl, cabextract }:
# Modified from vista-fonts
stdenvNoCC.mkDerivation {
pname = "vista-fonts-chs";
version = "1";
fetchzip {
name = "vista-fonts-chs-1";
src = fetchurl {
url = "http://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";
};
url = "http://download.microsoft.com/download/d/6/e/d6e2ff26-5821-4f35-a18b-78c963b1535d/VistaFont_CHS.EXE";
nativeBuildInputs = [ cabextract ];
postFetch = ''
${buildPackages.cabextract}/bin/cabextract --lowercase --filter '*.TTF' $downloadedFile
unpackPhase = ''
cabextract --lowercase --filter '*.TTF' $src
'';
installPhase = ''
mkdir -p $out/share/fonts/truetype
cp *.ttf $out/share/fonts/truetype
@@ -20,8 +28,6 @@ fetchzip {
--subst-var-by fontname "Microsoft YaHei"
'';
sha256 = "1zwrgck84k80gpg7493jdnxnv9ajxk5c7qndinnmqydnrw239zbw";
meta = {
description = "TrueType fonts from Microsoft Windows Vista For Simplified Chinese (Microsoft YaHei)";
homepage = "https://www.microsoft.com/typography/fonts/family.aspx?FID=350";