summary refs log tree commit diff
path: root/pkgs/data/fonts/ipafont/default.nix
blob: 91bf95d1ea2568ad328e94bf4d73fd2deb995a4b (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
{ stdenv, fetchurl, unzip }:

stdenv.mkDerivation {
  name = "ipafont-003.03";

  src = fetchurl {
    url = "http://ipafont.ipa.go.jp/ipafont/IPAfont00303.php";
    sha256 = "f755ed79a4b8e715bed2f05a189172138aedf93db0f465b4e20c344a02766fe5";
  };

  buildInputs = [ unzip ];

  unpackPhase = ''
    unzip $src
  '';

  installPhase = ''
    mkdir -p $out/share/fonts/opentype
    cp ./IPAfont00303/*.ttf $out/share/fonts/opentype/
  '';

  meta = {
    description = "Japanese font package with Mincho and Gothic fonts";
    longDescription = ''
      IPAFont is a Japanese font developed by the Information-technology
      Promotion Agency of Japan. It provides both Mincho and Gothic fonts,
      suitable for both display and printing.
    '';
    homepage = http://ipafont.ipa.go.jp/ipafont/;
    license = stdenv.lib.licenses.ipa;
    maintainers = [ stdenv.lib.maintainers.auntie ];
  };
}