nixpkgs/pkgs/data/fonts/ttf-tw-moe/default.nix

31 lines
934 B
Nix
Raw Normal View History

{ lib, stdenv, fetchzip }:
2020-11-14 11:09:17 +01:00
let
version = "2020-11-14";
in
2020-10-07 15:40:11 +02:00
fetchzip {
name = "ttf-tw-moe";
2020-11-14 11:09:17 +01:00
url = "https://github.com/Jiehong/TW-fonts/archive/${version}.zip";
2020-10-07 15:40:11 +02:00
postFetch = ''
mkdir -p $out/share/fonts
2020-11-14 11:09:17 +01:00
unzip -j $downloadedFile TW-fonts-${version}/\*.ttf -d $out/share/fonts/truetype
2020-10-07 15:40:11 +02:00
'';
2020-11-14 11:09:17 +01:00
sha256 = "1jd3gjjfa4vadp6d499n0irz5b22z611kd7q5qgqf6s2fwbxfhiz";
2020-10-07 15:40:11 +02:00
meta = with lib; {
2020-10-07 15:40:11 +02:00
homepage = "http://www.moe.gov.tw/";
description = "Set of KAI and SONG fonts from the Ministry of Education of Taiwan";
2020-11-14 11:09:17 +01:00
version = version;
2020-10-07 15:40:11 +02: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;
};
}