nixpkgs/pkgs/data/fonts/eduli/default.nix
Sergei Trofimovich b543ad5691 eduli.src: update hash change with fetchzip update
fetchzip changed unpacking of UTF-8 files on glibc systems:
    https://github.com/NixOS/nixpkgs/pull/176253
As a result unpacked contents changed it's filenames.
2022-06-11 11:25:58 +01:00

37 lines
1.1 KiB
Nix

{ 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 = "0b4kjdk0h0hx446swi0wzawia0mf16qh9b6v4h4nqg8qx0p2sd3c";
};
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 ];
};
}