nixpkgs/pkgs/data/fonts/hanazono/default.nix

39 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, fetchzip }:
2015-10-17 21:54:39 +01:00
2017-08-10 20:43:49 +01:00
let
2019-05-23 03:00:00 +01:00
version = "20170904";
2017-08-10 20:43:49 +01:00
in fetchzip {
name = "hanazono-${version}";
2015-10-17 21:54:39 +01:00
url = "mirror://osdn/hanazono-font/68253/hanazono-${version}.zip";
2015-10-17 21:54:39 +01:00
2017-08-10 20:43:49 +01:00
postFetch = ''
2019-05-23 03:00:00 +01:00
mkdir -p $out/share/{doc,fonts}
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
2017-08-10 20:43:49 +01:00
unzip -j $downloadedFile \*.txt -d $out/share/doc/hanazono
2015-10-17 21:54:39 +01:00
'';
2019-05-23 03:00:00 +01:00
sha256 = "0qiyd1vk3w8kqmwc6xi5d390wdr4ln8xhfbx3n8r1hhad9iz14p6";
2017-08-10 20:43:49 +01:00
meta = with lib; {
2019-05-23 03:00:00 +01:00
description = "Japanese Mincho-typeface TrueType font";
homepage = "https://fonts.jp/hanazono/";
longDescription = ''
Hanazono Mincho typeface is a Japanese TrueType font that developed with a
support of Grant-in-Aid for Publication of Scientific Research Results
from Japan Society for the Promotion of Science and the International
Research Institute for Zen Buddhism (IRIZ), Hanazono University. also with
volunteers who work together on glyphwiki.org.
'';
2015-10-17 21:54:39 +01:00
# Dual-licensed under OFL and the following:
# This font is a free software.
# Unlimited permission is granted to use, copy, and distribute it, with
# or without modification, either commercially and noncommercially.
# THIS FONT IS PROVIDED "AS IS" WITHOUT WARRANTY.
license = [ licenses.ofl licenses.free ];
maintainers = with maintainers; [ mathnerd314 ];
platforms = platforms.all;
};
}