nixpkgs/pkgs/data/fonts/ttf-tw-moe/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
967 B
Nix
Raw Normal View History

2023-01-25 11:34:24 +00:00
{ lib, stdenvNoCC, fetchzip }:
stdenvNoCC.mkDerivation rec {
pname = "ttf-tw-moe";
2020-11-14 10:09:17 +00:00
version = "2020-11-14";
2020-10-07 13:40:11 +00:00
2023-01-25 11:34:24 +00:00
src = fetchzip {
url = "https://github.com/Jiehong/TW-fonts/archive/${version}.zip";
hash = "sha256-9gy8xO93ViIPmpg1du0DbXVCR2FowourLH8nP9d6HK0=";
};
2020-10-07 13:40:11 +00:00
2023-01-25 11:34:24 +00:00
installPhase = ''
runHook preInstall
2020-10-07 13:40:11 +00:00
2023-01-25 11:34:24 +00:00
install -Dm644 *.ttf -t $out/share/fonts/truetype
runHook postInstall
'';
2020-10-07 13:40:11 +00:00
meta = with lib; {
2020-10-07 13:40:11 +00:00
homepage = "http://www.moe.gov.tw/";
description = "Set of KAI and SONG fonts from the Ministry of Education of Taiwan";
2020-11-14 10:09:17 +00:00
version = version;
2020-10-07 13:40:11 +00:00
longDescription = ''
Installs 2 TTF fonts: MOESongUN and TW-MOE-Std-Kai.
Both are provided by the Ministry of Education of Taiwan; each character's shape
closely follows the official recommendation, and can be used as for teaching purposes.
'';
license = licenses.cc-by-nd-30;
maintainers = [ maintainers.jiehong ];
platforms = platforms.all;
};
}