summaryrefslogtreecommitdiffstats
path: root/pkgs/data
diff options
context:
space:
mode:
authorRobert Hensing <roberth@users.noreply.github.com>2020-11-05 12:37:30 +0100
committerGitHub <noreply@github.com>2020-11-05 12:37:30 +0100
commit97e3346fbd169d58b204ba56a18cba55be5bbd20 (patch)
treebff84e3c3cfa5798e8f772143844dfd7dc15d8b3 /pkgs/data
parent4c817f9d6e6a4e6ddb0c51dcb093a8e70adaf5c4 (diff)
parent799e0f1a2a8fc56ebf83cab5d5fbf8140b6e7bf5 (diff)
Merge pull request #99955 from Jiehong/feature/new_font
ttf-tw-moe: first version
Diffstat (limited to 'pkgs/data')
-rw-r--r--pkgs/data/fonts/ttf-tw-moe/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/data/fonts/ttf-tw-moe/default.nix b/pkgs/data/fonts/ttf-tw-moe/default.nix
new file mode 100644
index 000000000000..aeda5cd695d6
--- /dev/null
+++ b/pkgs/data/fonts/ttf-tw-moe/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, fetchzip }:
+
+fetchzip {
+ name = "ttf-tw-moe";
+
+ url = "https://github.com/Jiehong/TW-fonts/archive/b30ae75e9dc299afd61e31cfd43f7a0a157dfb1f.zip";
+
+ postFetch = ''
+ mkdir -p $out/share/fonts
+ unzip -j $downloadedFile TW-fonts-b30ae75e9dc299afd61e31cfd43f7a0a157dfb1f/\*.ttf -d $out/share/fonts/truetype
+ '';
+
+ sha256 = "0khgxih9z6pqf7pdp21xjp24wb9ygsrdcmzpjb7vr9x8n78i1fbs";
+
+ meta = with stdenv.lib; {
+ homepage = "http://www.moe.gov.tw/";
+ description = "Set of KAI and SONG fonts from the Ministry of Education of Taiwan";
+ 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;
+ };
+}