Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 37 lines 1.1 kB view raw
1{ 2 stdenvNoCC, 3 lib, 4 fetchzip, 5}: 6 7stdenvNoCC.mkDerivation rec { 8 pname = "eduli"; 9 version = "3.0"; 10 11 src = fetchzip { 12 name = "${pname}-${version}"; 13 url = "https://language.moe.gov.tw/001/Upload/Files/site_content/M0001/MoeLI-3.0.zip"; 14 hash = "sha256-bDQtLugYPWwJJNusBLEJrgIVufocRK4NIR0CCGaTkyw="; 15 }; 16 17 installPhase = '' 18 mkdir -p $out/share/fonts/ 19 for name in *.ttf; do 20 mv "$name" "$out/share/fonts/$(echo $name | sed -r 's/(.*)\(.*\)\.ttf/\1.ttf/')" 21 done 22 ''; 23 24 meta = { 25 description = "MOE Li Font, a clerical Chinese font by the Ministry of Education, ROC (Taiwan)"; 26 longDescription = '' 27 The MOE Li Font is a li (clerical srcipt) font 28 provided by 29 the Midistry of Education, Republic of China (Taiwan). 30 It currently includes 4,808 Chinese characters. 31 The clerical script (lishu) is an archaic style of Chinese calligraphy. 32 ''; 33 homepage = "http://language.moe.gov.tw/result.aspx?classify_sn=23&subclassify_sn=436&content_sn=49"; 34 license = lib.licenses.cc-by-nd-30; 35 maintainers = with lib.maintainers; [ ShamrockLee ]; 36 }; 37}