summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonathan Glines <auntieNeo@gmail.com>2014-06-12 21:33:23 -0600
committerJonathan Glines <auntieNeo@gmail.com>2014-06-12 21:33:23 -0600
commit1a30cf5e0926488b58b862a370a5e88461815c23 (patch)
tree6391811dd4cfd835d96e6fb507d6eace6048a3f6
parentf5b5df830cdf506cca1a8a6b17cc1ea1b775d788 (diff)
downloadnixpkgs-1a30cf5e0926488b58b862a370a5e88461815c23.tar
nixpkgs-1a30cf5e0926488b58b862a370a5e88461815c23.tar.gz
nixpkgs-1a30cf5e0926488b58b862a370a5e88461815c23.tar.bz2
nixpkgs-1a30cf5e0926488b58b862a370a5e88461815c23.tar.lz
nixpkgs-1a30cf5e0926488b58b862a370a5e88461815c23.tar.xz
nixpkgs-1a30cf5e0926488b58b862a370a5e88461815c23.tar.zst
nixpkgs-1a30cf5e0926488b58b862a370a5e88461815c23.zip
Re-added the non-free kochi-substitute with naga10 glyphs.
-rw-r--r--pkgs/data/fonts/kochi-substitute-naga10/default.nix36
-rw-r--r--pkgs/data/fonts/kochi-substitute/default.nix8
-rw-r--r--pkgs/top-level/all-packages.nix2
3 files changed, 42 insertions, 4 deletions
diff --git a/pkgs/data/fonts/kochi-substitute-naga10/default.nix b/pkgs/data/fonts/kochi-substitute-naga10/default.nix
new file mode 100644
index 00000000000..30a56f950f9
--- /dev/null
+++ b/pkgs/data/fonts/kochi-substitute-naga10/default.nix
@@ -0,0 +1,36 @@
+{ stdenv, fetchurl }:
+
+let version = "20030809";
+in
+stdenv.mkDerivation {
+  name = "kochi-substitute-naga10-${version}";
+
+  src = fetchurl {
+    url = "mirror://sourceforgejp/efont/5411/kochi-substitute-${version}.tar.bz2";
+    sha256 = "f4d69b24538833bf7e2c4de5e01713b3f1440960a6cc2a5993cb3c68cd23148c";
+  };
+
+  sourceRoot = "kochi-substitute-${version}";
+
+  installPhase = ''
+    mkdir -p $out/share/fonts/truetype
+    cp ./kochi-gothic-subst.ttf $out/share/fonts/truetype/kochi-gothic-subst-naga10.ttf
+    cp ./kochi-mincho-subst.ttf $out/share/fonts/truetype/kochi-mincho-subst-naga10.ttf
+  '';
+
+  unfreeRedistributable = "unfree-redistributable";
+
+  meta = {
+    description = "Japanese font, non-free replacement for MS Gothic and MS Mincho.";
+    homepage = http://sourceforge.jp/projects/efont/;
+    longDescription = ''
+      Kochi Gothic and Kochi Mincho were developed as free replacements for the
+      MS Gothic and MS Mincho fonts from Microsoft. This version of the fonts
+      includes some non-free glyphs from the naga10 font, which stipulate that
+      this font may not be sold commercially. See kochi-substitute for the free
+      Debian version.
+    '';
+    license = stdenv.lib.licenses.unfree;
+    maintainers = [ stdenv.lib.maintainers.auntie ];
+  };
+}
diff --git a/pkgs/data/fonts/kochi-substitute/default.nix b/pkgs/data/fonts/kochi-substitute/default.nix
index eceebf52912..dec20fd5100 100644
--- a/pkgs/data/fonts/kochi-substitute/default.nix
+++ b/pkgs/data/fonts/kochi-substitute/default.nix
@@ -31,10 +31,10 @@ stdenv.mkDerivation {
   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.
+      Kochi Gothic and Kochi Mincho were developed as free replacements 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;
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 3be9de80fc1..e5d81472f33 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -7791,6 +7791,8 @@ let
 
   kochi-substitute = callPackage ../data/fonts/kochi-substitute {};
 
+  kochi-substitute-naga10 = callPackage ../data/fonts/kochi-substitute-naga10 {};
+
   liberation_ttf = callPackage ../data/fonts/redhat-liberation-fonts { };
 
   libertine = builderDefsPackage (import ../data/fonts/libertine) {