about summary refs log tree commit diff
path: root/pkgs/data/fonts
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2019-05-19 04:55:43 -0500
committerGitHub <noreply@github.com>2019-05-19 04:55:43 -0500
commit9c9c2c871628380853bcfa0b1f9b7d050837b3c2 (patch)
tree2573e2083b1529121db9a1aad58f96ca7b2f7459 /pkgs/data/fonts
parent5f6384976f449ac1dfb0ce80031cfeca65c7de26 (diff)
parente8a24831634f7209dbba06fe6384c1bac6595197 (diff)
downloadnixlib-9c9c2c871628380853bcfa0b1f9b7d050837b3c2.tar
nixlib-9c9c2c871628380853bcfa0b1f9b7d050837b3c2.tar.gz
nixlib-9c9c2c871628380853bcfa0b1f9b7d050837b3c2.tar.bz2
nixlib-9c9c2c871628380853bcfa0b1f9b7d050837b3c2.tar.lz
nixlib-9c9c2c871628380853bcfa0b1f9b7d050837b3c2.tar.xz
nixlib-9c9c2c871628380853bcfa0b1f9b7d050837b3c2.tar.zst
nixlib-9c9c2c871628380853bcfa0b1f9b7d050837b3c2.zip
Merge pull request #61667 from JohnAZoidberg/cnstrokeorder
cnstrokeorder: init at 0.0.4.7
Diffstat (limited to 'pkgs/data/fonts')
-rw-r--r--pkgs/data/fonts/cnstrokeorder/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/data/fonts/cnstrokeorder/default.nix b/pkgs/data/fonts/cnstrokeorder/default.nix
new file mode 100644
index 000000000000..965bf119f6e7
--- /dev/null
+++ b/pkgs/data/fonts/cnstrokeorder/default.nix
@@ -0,0 +1,26 @@
+{ lib, fetchurl }:
+
+let
+  version = "0.0.4.7";
+in fetchurl {
+  name = "cnstrokeorder-${version}";
+
+  url = "http://rtega.be/chmn/CNstrokeorder-${version}.ttf";
+
+  recursiveHash = true;
+  downloadToTemp = true;
+
+  postFetch = ''
+    install -D $downloadedFile $out/share/fonts/truetype/CNstrokeorder-${version}.ttf
+  '';
+
+  sha256 = "0cizgfdgbq9av5c8234mysr2q54iw9pkxrmq5ga8gv32hxhl5bx4";
+
+  meta = with lib; {
+    description = "Chinese font that shows stroke order for HSK 1-4";
+    homepage = "http://rtega.be/chmn/index.php?subpage=68";
+    license = [ licenses.arphicpl ];
+    maintainers = with maintainers; [ johnazoidberg ];
+    platforms = platforms.all;
+  };
+}