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-02-18 20:01:01 +01:00
|
|
|
version = "10.0.2";
|
2017-08-10 22:26:24 +02:00
|
|
|
in fetchzip {
|
2017-02-05 06:46:34 +01:00
|
|
|
name = "babelstone-han-${version}";
|
|
|
|
|
2018-02-18 20:01:01 +01:00
|
|
|
url = http://www.babelstone.co.uk/Fonts/7932/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-02-18 20:01:01 +01:00
|
|
|
sha256 = "17r5cf028v66yzjf9qbncn4rchv2xxkl2adxr35ppg1l7zssz9v6";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|