···11+{ stdenvNoCC, lib, fetchzip }:
22+33+stdenvNoCC.mkDerivation rec {
44+ pname = "edukai";
55+ version = "4.0";
66+77+ src = fetchzip {
88+ name = "${pname}-${version}";
99+ url =
1010+ "http://language.moe.gov.tw/001/Upload/Files/site_content/M0001/edukai-4.0.zip";
1111+ sha256 = "10m9srvbazvg9gc43943dc89rjzcfc8mm4lx9gb5hnplrn22zrcn";
1212+ };
1313+1414+ installPhase = ''
1515+ mkdir -p $out/share/fonts/
1616+ mv *.ttf $out/share/fonts/
1717+ '';
1818+1919+ meta = {
2020+ description =
2121+ "The MOE Standard Kai Font, a Chinese font by the Ministry of Education, ROC (Taiwan)";
2222+ longDescription = ''
2323+ The MOE Standard Kai Font is a kai (regular srcipt) font
2424+ provided by
2525+ the Midistry of Education, Republic of China (Taiwan).
2626+ It currently includes 13,076 Chinese characters.
2727+ '';
2828+ homepage =
2929+ "http://language.moe.gov.tw/result.aspx?classify_sn=23&subclassify_sn=436&content_sn=47";
3030+ license = lib.licenses.cc-by-nd-30;
3131+ maintainers = with lib.maintainers; [ ShamrockLee ];
3232+ };
3333+}
+36
pkgs/data/fonts/eduli/default.nix
···11+{ stdenvNoCC, lib, fetchzip }:
22+33+stdenvNoCC.mkDerivation rec {
44+ pname = "eduli";
55+ version = "3.0";
66+77+ src = fetchzip {
88+ name = "${pname}-${version}";
99+ url =
1010+ "http://language.moe.gov.tw/001/Upload/Files/site_content/M0001/MoeLI-3.0.zip";
1111+ sha256 = "0vpmm2qb429npng0aqkafwgs7cjibq8a3f7bbn9hysbm2lndwxwd";
1212+ };
1313+1414+ installPhase = ''
1515+ mkdir -p $out/share/fonts/
1616+ for name in *.ttf; do
1717+ mv "$name" "$out/share/fonts/$(echo $name | sed -r 's/(.*)\(.*\)\.ttf/\1.ttf/')"
1818+ done
1919+ '';
2020+2121+ meta = {
2222+ description =
2323+ "The MOE Li Font, a clerical Chinese font by the Ministry of Education, ROC (Taiwan)";
2424+ longDescription = ''
2525+ The MOE Li Font is a li (clerical srcipt) font
2626+ provided by
2727+ the Midistry of Education, Republic of China (Taiwan).
2828+ It currently includes 4,808 Chinese characters.
2929+ The clerical script (lishu) is an archaic style of Chinese calligraphy.
3030+ '';
3131+ homepage =
3232+ "http://language.moe.gov.tw/result.aspx?classify_sn=23&subclassify_sn=436&content_sn=49";
3333+ license = lib.licenses.cc-by-nd-30;
3434+ maintainers = with lib.maintainers; [ ShamrockLee ];
3535+ };
3636+}
+32
pkgs/data/fonts/edusong/default.nix
···11+{ stdenvNoCC, lib, fetchzip }:
22+33+stdenvNoCC.mkDerivation rec {
44+ pname = "edusong";
55+ version = "1.0"; # The upstream doesn't provide the version
66+77+ src = fetchzip {
88+ name = "${pname}-${version}";
99+ url =
1010+ "http://language.moe.gov.tw/001/Upload/Files/site_content/M0001/eduSong_Unicode.zip";
1111+ sha256 = "1b74wj9hdzlnrvldwlkh21sfhqxwh9qghf1k0fv66zs6n48vb0d4";
1212+ };
1313+1414+ installPhase = ''
1515+ mkdir -p $out/share/fonts/
1616+ mv *.ttf $out/share/fonts/
1717+ '';
1818+1919+ meta = {
2020+ description =
2121+ "The MOE Standard Song Font, a Chinese font by the Ministry of Education, ROC (Taiwan)";
2222+ longDescription = ''
2323+ The MOE Standard Song Font is a Chinese Song font provided by
2424+ the Midistry of Education, Republic of China (Taiwan).
2525+ Song or Ming is a category of CKJ typefaces in print.
2626+ '';
2727+ homepage =
2828+ "http://language.moe.gov.tw/result.aspx?classify_sn=23&subclassify_sn=436&content_sn=48";
2929+ license = lib.licenses.cc-by-nd-30;
3030+ maintainers = with lib.maintainers; [ ShamrockLee ];
3131+ };
3232+}