summaryrefslogtreecommitdiffstats
path: root/pkgs/data
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2014-06-30 10:19:48 +0400
committerMichael Raskin <7c6f434c@mail.ru>2014-06-30 10:19:48 +0400
commitd001de0100c60c6b809b6aa95e8c4996097f4c2d (patch)
treeaada4bd1fc0c1aa29ae99d579bd02be40c59e8ea /pkgs/data
parent02266194ea2b9cc44a92b332d9033dcf8ee6be68 (diff)
parent339b34798724039a09239ea58b2cb59ab92a5134 (diff)
Merge pull request #3102 from auntieNeo/ipafont
Added package for Japanese IPAFonts.
Diffstat (limited to 'pkgs/data')
-rw-r--r--pkgs/data/fonts/ipafont/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/data/fonts/ipafont/default.nix b/pkgs/data/fonts/ipafont/default.nix
new file mode 100644
index 000000000000..91bf95d1ea25
--- /dev/null
+++ b/pkgs/data/fonts/ipafont/default.nix
@@ -0,0 +1,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 ];
+ };
+}