nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 31 lines 1.2 kB view raw
1{ 2 stdenvNoCC, 3 lib, 4 fetchzip, 5}: 6 7stdenvNoCC.mkDerivation (finalAttrs: { 8 pname = "edusong"; 9 version = "4.0"; 10 11 src = fetchzip { 12 name = "edusong-${finalAttrs.version}"; 13 url = "https://language.moe.gov.tw/001/Upload/Files/site_content/M0001/eduSong_Unicode.zip"; 14 hash = "sha256-4NBnwMrYufeZbgSiD2fAhe4tuy0aAA5u9tWwjQQjEQk="; 15 }; 16 17 installPhase = '' 18 mkdir -p $out/share/fonts/ 19 mv eduSong_Unicode*.ttf $out/share/fonts/eduSong_Unicode\(202412\).ttf 20 ''; 21 22 meta = { 23 description = "MOE Song font, a Song-style Chinese character typeface"; 24 longDescription = '' 25 A Song-style Chinese character typeface published by the Ministry of Education of the Republic of China (Taiwan). The Song style is also referred to as , , sòngtǐ, , , or míngtǐ, in Chinese; , , or myeongjo in Korean; , , or minchōtai in Japanese. 26 ''; 27 homepage = "https://language.moe.gov.tw/result.aspx?classify_sn=23&subclassify_sn=436&content_sn=48"; 28 license = lib.licenses.cc-by-nd-30; 29 maintainers = with lib.maintainers; [ ShamrockLee ]; 30 }; 31})