summary refs log tree commit diff
path: root/pkgs/data/fonts/kochi-substitute
diff options
context:
space:
mode:
authorJonathan Glines <auntieNeo@gmail.com>2014-06-11 22:18:05 -0600
committerJonathan Glines <auntieNeo@gmail.com>2014-06-11 22:18:05 -0600
commitf5b5df830cdf506cca1a8a6b17cc1ea1b775d788 (patch)
tree47db44fa1a092797e1db0a3870e842ebcd74d2af /pkgs/data/fonts/kochi-substitute
parentb913409e0bcf93706f2e2f6b25809ab30bd124ec (diff)
downloadnixpkgs-f5b5df830cdf506cca1a8a6b17cc1ea1b775d788.tar
nixpkgs-f5b5df830cdf506cca1a8a6b17cc1ea1b775d788.tar.gz
nixpkgs-f5b5df830cdf506cca1a8a6b17cc1ea1b775d788.tar.bz2
nixpkgs-f5b5df830cdf506cca1a8a6b17cc1ea1b775d788.tar.lz
nixpkgs-f5b5df830cdf506cca1a8a6b17cc1ea1b775d788.tar.xz
nixpkgs-f5b5df830cdf506cca1a8a6b17cc1ea1b775d788.tar.zst
nixpkgs-f5b5df830cdf506cca1a8a6b17cc1ea1b775d788.zip
Moved kochi-mincho and kochi-gothic back into one package.
Diffstat (limited to 'pkgs/data/fonts/kochi-substitute')
-rw-r--r--pkgs/data/fonts/kochi-substitute/default.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/data/fonts/kochi-substitute/default.nix b/pkgs/data/fonts/kochi-substitute/default.nix
new file mode 100644
index 00000000000..eceebf52912
--- /dev/null
+++ b/pkgs/data/fonts/kochi-substitute/default.nix
@@ -0,0 +1,43 @@
+{ stdenv, fetchurl, dpkg }:
+
+let version = "20030809";
+in
+stdenv.mkDerivation {
+  name = "kochi-substitute-${version}";
+
+  src = fetchurl {
+    url = "mirror://debian/pool/main/t/ttf-kochi/ttf-kochi-gothic_${version}-15_all.deb";
+    sha256 = "6e2311cd8e880a9328e4d3eef34a1c1f024fc87fba0dce177a0e1584a7360fea";
+  };
+
+  src2 = fetchurl {
+    url = "mirror://debian/pool/main/t/ttf-kochi/ttf-kochi-mincho_${version}-15_all.deb";
+    sha256 = "91ce6c993a3a0f77ed85db76f62ce18632b4c0cbd8f864676359a17ae5e6fa3c";
+  };
+
+  buildInputs = [ dpkg ];
+
+  unpackCmd = ''
+    dpkg-deb --fsys-tarfile $src | tar xf - ./usr/share/fonts/truetype/kochi/kochi-gothic-subst.ttf
+    dpkg-deb --fsys-tarfile $src2 | tar xf - ./usr/share/fonts/truetype/kochi/kochi-mincho-subst.ttf
+  '';
+
+  installPhase = ''
+    mkdir -p $out/share/fonts/truetype
+    cp ./share/fonts/truetype/kochi/kochi-gothic-subst.ttf $out/share/fonts/truetype/
+    cp ./share/fonts/truetype/kochi/kochi-mincho-subst.ttf $out/share/fonts/truetype/
+  '';
+
+  meta = {
+    description = "Japanese font, a free replacement for MS Gothic and MS Mincho.";
+    longDescription = ''
+      Kochi Gothic was developed as a free replacement for the MS Gothic and
+      MS Mincho fonts from Microsoft. These are the Debian versions of the
+      fonts, which remove some non-free glyphs that were added from the naga10
+      font.
+    '';
+    homepage = http://sourceforge.jp/projects/efont/;
+    license = stdenv.lib.licenses.wadalab;
+    maintainers = [ stdenv.lib.maintainers.auntie ];
+  };
+}