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

32 lines
1,021 B
Nix
Raw Normal View History

2017-08-10 21:43:49 +02:00
{ stdenv, fetchzip }:
2015-10-17 22:54:39 +02:00
2017-08-10 21:43:49 +02:00
let
2015-10-17 22:54:39 +02:00
version = "20141012";
2017-08-10 21:43:49 +02:00
in fetchzip {
name = "hanazono-${version}";
2015-10-17 22:54:39 +02:00
2017-08-10 21:43:49 +02:00
url = "mirror://sourceforgejp/hanazono-font/62072/hanazono-${version}.zip";
2015-10-17 22:54:39 +02:00
2017-08-10 21:43:49 +02:00
postFetch = ''
mkdir -p $out/share/fonts/hanazono $out/share/doc/hanazono
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/hanazono
unzip -j $downloadedFile \*.txt -d $out/share/doc/hanazono
2015-10-17 22:54:39 +02:00
'';
2017-08-10 21:43:49 +02:00
sha256 = "0z0fgrjzp0hqqnhfisivciqpxd2br2w2q9mvxkglj44np2q889w2";
2015-10-17 22:54:39 +02:00
meta = with stdenv.lib; {
description = "Free kanji font containing 96,327 characters";
homepage = http://fonts.jp/hanazono/;
# 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;
};
}