3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/fonts/ttf-tw-moe/default.nix

31 lines
926 B
Nix
Raw Normal View History

{ lib, fetchzip }:
2020-11-14 10:09:17 +00:00
let
version = "2020-11-14";
in
2020-10-07 14:40:11 +01:00
fetchzip {
name = "ttf-tw-moe";
2020-11-14 10:09:17 +00:00
url = "https://github.com/Jiehong/TW-fonts/archive/${version}.zip";
2020-10-07 14:40:11 +01:00
postFetch = ''
mkdir -p $out/share/fonts
2020-11-14 10:09:17 +00:00
unzip -j $downloadedFile TW-fonts-${version}/\*.ttf -d $out/share/fonts/truetype
2020-10-07 14:40:11 +01:00
'';
2020-11-14 10:09:17 +00:00
sha256 = "1jd3gjjfa4vadp6d499n0irz5b22z611kd7q5qgqf6s2fwbxfhiz";
2020-10-07 14:40:11 +01:00
meta = with lib; {
2020-10-07 14:40:11 +01:00
homepage = "http://www.moe.gov.tw/";
description = "Set of KAI and SONG fonts from the Ministry of Education of Taiwan";
2020-11-14 10:09:17 +00:00
version = version;
2020-10-07 14:40:11 +01:00
longDescription = ''
Installs 2 TTF fonts: MOESongUN and TW-MOE-Std-Kai.
Both are provided by the Ministry of Education of Taiwan; each character's shape
closely follows the official recommendation, and can be used as for teaching purposes.
'';
license = licenses.cc-by-nd-30;
maintainers = [ maintainers.jiehong ];
platforms = platforms.all;
};
}