Unverified Commit 2c3dbb12 authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

cns11643-kai: init at 0-unstable-2025-01-13 (#363429)

parents 9de662f2 53249b4d
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -21006,6 +21006,13 @@
    githubId = 7309170;
    name = "Ryota Kameoka";
  };
  rypervenche = {
    email = "git@ryper.org";
    github = "rypervenche";
    githubId = 1411504;
    name = "rypervenche";
    keys = [ { fingerprint = "1198 7A9F 03AE 47F0 4919  E334 6A41 2C4A ECE1 66EF"; } ];
  };
  rytone = {
    email = "max@ryt.one";
    github = "rastertail";
+33 −0
Original line number Diff line number Diff line
{
  lib,
  stdenvNoCC,
  fetchFromGitHub,
}:

stdenvNoCC.mkDerivation rec {
  pname = "cns11643-kai";
  version = "0-unstable-2025-01-13";

  src = fetchFromGitHub {
    owner = "rypervenche";
    repo = "cns11643-fonts";
    rev = "refs/tags/${version}";
    hash = "sha256-A/4iwNvyzOYEpBzxKeq1xM/6aU6EOCATAr0lQlyckKQ=";
  };

  installPhase = ''
    runHook preInstall

    install -Dm644 TW-Kai*.ttf -t $out/share/fonts/truetype/

    runHook postInstall
  '';

  meta = {
    description = "Chinese TrueType Kai font by Ministry of Education of Taiwan government";
    homepage = "https://www.cns11643.gov.tw/";
    license = lib.licenses.ofl;
    maintainers = [ lib.maintainers.rypervenche ];
    platforms = lib.platforms.all;
  };
}