summary refs log tree commit diff
path: root/pkgs/data/fonts/arphic/default.nix
blob: 1e52ea301afa45545c9e04bcbc6b37b42cd04009 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{ lib, fetchzip, mkfontscale, mkfontdir }:

let
  version = "0.2.20080216.2";
in {
  arphic-ukai = fetchzip {
    name = "arphic-ukai-${version}";

    url = "http://archive.ubuntu.com/ubuntu/pool/main/f/fonts-arphic-ukai/fonts-arphic-ukai_${version}.orig.tar.bz2";

    postFetch = ''
      tar -xjvf $downloadedFile --strip-components=1
      install -D -v ukai.ttc $out/share/fonts/truetype/arphic-ukai.ttc
      cd $out/share/fonts
      ${mkfontdir}/bin/mkfontdir
      ${mkfontscale}/bin/mkfontscale
    '';

    sha256 = "0xi5ycm7ydzpn7cqxv1kcj9vd70nr9wn8v27hmibyjc25y2qdmzl";

    meta = with lib; {
      description = "CJK Unicode font Kai style";
      homepage = https://www.freedesktop.org/wiki/Software/CJKUnifonts/;

      license = licenses.arphicpl;
      maintainers = [ maintainers.changlinli ];
      platforms = platforms.all;
    };
  };

  arphic-uming = fetchzip {
    name = "arphic-uming-${version}";

    url = "http://archive.ubuntu.com/ubuntu/pool/main/f/fonts-arphic-uming/fonts-arphic-uming_${version}.orig.tar.bz2";

    postFetch = ''
      tar -xjvf $downloadedFile --strip-components=1
      install -D -v uming.ttc $out/share/fonts/truetype/arphic-uming.ttc
      cd $out/share/fonts
      ${mkfontdir}/bin/mkfontdir
      ${mkfontscale}/bin/mkfontscale
    '';

    sha256 = "16jybvj1cxamm682caj6nsm6l5c60x9mgchp1l2izrw2rvc8x38d";

    meta = with lib; {
      description = "CJK Unicode font Ming style";
      homepage = https://www.freedesktop.org/wiki/Software/CJKUnifonts/;

      license = licenses.arphicpl;
      maintainers = [ maintainers.changlinli ];
      platforms = platforms.all;
    };
  };
}