2017-08-10 22:26:24 +02:00
|
|
|
{stdenv, fetchzip}:
|
2017-02-05 06:46:34 +01:00
|
|
|
|
2017-08-10 22:26:24 +02:00
|
|
|
let
|
2018-03-24 18:23:55 +01:00
|
|
|
version = "11.0.0";
|
2017-08-10 22:26:24 +02:00
|
|
|
in fetchzip {
|
2017-02-05 06:46:34 +01:00
|
|
|
name = "babelstone-han-${version}";
|
|
|
|
|
2018-03-24 18:23:55 +01:00
|
|
|
url = http://www.babelstone.co.uk/Fonts/3902/BabelStoneHan.zip;
|
2017-08-10 22:26:24 +02:00
|
|
|
postFetch = ''
|
2017-02-05 06:46:34 +01:00
|
|
|
mkdir -p $out/share/fonts/truetype
|
2017-08-10 22:26:24 +02:00
|
|
|
unzip $downloadedFile '*.ttf' -d $out/share/fonts/truetype
|
2017-02-05 06:46:34 +01:00
|
|
|
'';
|
2018-03-24 18:23:55 +01:00
|
|
|
sha256 = "1w3v69lacsy0nha20rkbs6f0dskf5xm6p250qx4a1m69d4a1gx7v";
|
2017-02-05 06:46:34 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Unicode CJK font with over 32600 Han characters";
|
|
|
|
homepage = http://www.babelstone.co.uk/Fonts/Han.html;
|
|
|
|
|
|
|
|
license = licenses.free;
|
|
|
|
platforms = platforms.all;
|
|
|
|
hydraPlatforms = [];
|
|
|
|
maintainers = [ maintainers.volth ];
|
|
|
|
};
|
|
|
|
}
|