2023-01-25 14:45:31 +00:00
|
|
|
{ lib, stdenvNoCC, fetchzip }:
|
2015-10-17 20:54:39 +00:00
|
|
|
|
2023-01-25 14:45:31 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "hanazono";
|
2019-05-23 02:00:00 +00:00
|
|
|
version = "20170904";
|
2015-10-17 20:54:39 +00:00
|
|
|
|
2023-01-25 14:45:31 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "mirror://osdn/hanazono-font/68253/hanazono-${version}.zip";
|
|
|
|
stripRoot = false;
|
|
|
|
hash = "sha256-qd0q4wQnHBGLT7C+UQIiOHnxCnRCscMZcj3P5RRxD1U=";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2015-10-17 20:54:39 +00:00
|
|
|
|
2023-01-25 14:45:31 +00:00
|
|
|
install -Dm644 *.ttf -t $out/share/fonts/truetype
|
|
|
|
install -Dm644 *.txt -t $out/share/doc/hanazono
|
2015-10-17 20:54:39 +00:00
|
|
|
|
2023-01-25 14:45:31 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
2017-08-10 19:43:49 +00:00
|
|
|
|
2019-05-13 01:55:32 +00:00
|
|
|
meta = with lib; {
|
2019-05-23 02:00:00 +00: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 20:54:39 +00: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;
|
|
|
|
};
|
|
|
|
}
|