···1+{ stdenv, fetchurl, unzip }:
2+3+stdenv.mkDerivation rec {
4+ name = "ipaexfont-003.01";
5+6+ src = fetchurl {
7+ url = "http://dl.ipafont.ipa.go.jp/IPAexfont/IPAexfont00301.zip";
8+ sha256 = "0nmfyh10rzkvp0qmrla0dahkmmxq47678y4v8fdm8fpdzmf0kpn7";
9+ };
10+11+ buildInputs = [ unzip ];
12+13+ installPhase = ''
14+ mkdir -p $out/share/fonts/opentype/
15+ cp *.ttf $out/share/fonts/opentype/
16+ '';
17+18+ meta = with stdenv.lib; {
19+ description = "Japanese font package with Mincho and Gothic fonts";
20+ longDescription = ''
21+ IPAex font is a Japanese font developed by the Information-technology
22+ Promotion Agency of Japan. It provides both Mincho and Gothic fonts,
23+ suitable for both display and printing.
24+25+ This is the successor to the IPA fonts.
26+ '';
27+ homepage = http://ipafont.ipa.go.jp/;
28+ license = licenses.ipa;
29+ maintainers = with maintainers; [ gebner ];
30+ };
31+}