about summary refs log tree commit diff
path: root/pkgs/data/fonts
diff options
context:
space:
mode:
authorShamrock Lee <44064051+ShamrockLee@users.noreply.github.com>2020-07-29 01:25:28 +0800
committerShamrock Lee <44064051+ShamrockLee@users.noreply.github.com>2020-08-01 08:17:26 +0800
commitb2872b921d02b7da9d46b272d5a27cc672267528 (patch)
tree13f12e2a28204c1025cffaa4877b8fb9f1a74687 /pkgs/data/fonts
parent8ca49923c6be434fae55e6e2637c757eefdd84b5 (diff)
eduli: Init at 3.0
Add `eduli` (MOE Li Font)
If approved, users will be able to install
the Chinese Li (clerical) Font provided by
the Ministry of Education, Republic of China (Taiwan).
This is probably the first font of clerical script in nixpkgs.
Diffstat (limited to 'pkgs/data/fonts')
-rw-r--r--pkgs/data/fonts/eduli/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/data/fonts/eduli/default.nix b/pkgs/data/fonts/eduli/default.nix
new file mode 100644
index 0000000000000..7ff2ad4446c53
--- /dev/null
+++ b/pkgs/data/fonts/eduli/default.nix
@@ -0,0 +1,36 @@
+{ stdenvNoCC, lib, fetchzip }:
+
+stdenvNoCC.mkDerivation rec {
+  pname = "eduli";
+  version = "3.0";
+
+  src = fetchzip {
+    name = "${pname}-${version}";
+    url =
+      "http://language.moe.gov.tw/001/Upload/Files/site_content/M0001/MoeLI-3.0.zip";
+    sha256 = "0vpmm2qb429npng0aqkafwgs7cjibq8a3f7bbn9hysbm2lndwxwd";
+  };
+
+  installPhase = ''
+    mkdir -p $out/share/fonts/
+    for name in *.ttf; do
+      mv "$name" "$out/share/fonts/$(echo $name | sed -r 's/(.*)\(.*\)\.ttf/\1.ttf/')"
+    done
+  '';
+
+  meta = {
+    description =
+      "The MOE Li Font, a clerical Chinese font by the Ministry of Education, ROC (Taiwan)";
+    longDescription = ''
+      The MOE Li Font is a li (clerical srcipt) font
+      provided by
+      the Midistry of Education, Republic of China (Taiwan).
+      It currently includes 4,808 Chinese characters.
+      The clerical script (lishu) is an archaic style of Chinese calligraphy.
+    '';
+    homepage =
+      "http://language.moe.gov.tw/result.aspx?classify_sn=23&subclassify_sn=436&content_sn=49";
+    license = lib.licenses.cc-by-nd-30;
+    maintainers = with lib.maintainers; [ ShamrockLee ];
+  };
+}