summary refs log tree commit diff
diff options
context:
space:
mode:
authorPkmX <pkmx.tw@gmail.com>2014-02-08 22:37:40 +0800
committerPkmX <pkmx.tw@gmail.com>2014-02-09 05:23:23 +0800
commit023f30f07d927976060e5b0a7eec0699340b3ce2 (patch)
treebd266804e76589b922898c682b31c9bb78948b00
parentc7b781ca129befdda451590b291c1761402b8645 (diff)
downloadnixlib-023f30f07d927976060e5b0a7eec0699340b3ce2.tar
nixlib-023f30f07d927976060e5b0a7eec0699340b3ce2.tar.gz
nixlib-023f30f07d927976060e5b0a7eec0699340b3ce2.tar.bz2
nixlib-023f30f07d927976060e5b0a7eec0699340b3ce2.tar.lz
nixlib-023f30f07d927976060e5b0a7eec0699340b3ce2.tar.xz
nixlib-023f30f07d927976060e5b0a7eec0699340b3ce2.tar.zst
nixlib-023f30f07d927976060e5b0a7eec0699340b3ce2.zip
Add wqy-microhei font
-rw-r--r--pkgs/data/fonts/wqy-microhei/default.nix20
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/data/fonts/wqy-microhei/default.nix b/pkgs/data/fonts/wqy-microhei/default.nix
new file mode 100644
index 000000000000..fb3bbabf8471
--- /dev/null
+++ b/pkgs/data/fonts/wqy-microhei/default.nix
@@ -0,0 +1,20 @@
+{ stdenv, fetchurl }:
+
+stdenv.mkDerivation rec {
+  name = "wqy-microhei-0.2.0-beta";
+
+  src = fetchurl {
+    url = "mirror://sourceforge/wqy/${name}.tar.gz";
+    sha256 = "0gi1yxqph8xx869ichpzzxvx6y50wda5hi77lrpacdma4f0aq0i8";
+  };
+
+  installPhase =
+    ''
+      install -Dm644 wqy-microhei.ttc $out/share/fonts
+    '';
+
+  meta = {
+    description = "A (mainly) Chinese Unicode font";
+  };
+}
+
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index a51d1d33f566..5fa44337c738 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -7344,6 +7344,8 @@ let
 
   vistafonts = callPackage ../data/fonts/vista-fonts { };
 
+  wqy_microhei = callPackage ../data/fonts/wqy-microhei { };
+
   wqy_zenhei = callPackage ../data/fonts/wqy-zenhei { };
 
   xhtml1 = callPackage ../data/sgml+xml/schemas/xml-dtd/xhtml1 { };