2019-05-13 02:55:32 +01:00
|
|
|
{ lib, fetchzip }:
|
2017-02-05 05:46:34 +00:00
|
|
|
|
2017-08-10 21:26:24 +01:00
|
|
|
let
|
2020-02-10 12:55:39 +00:00
|
|
|
version = "13.0.3";
|
2017-08-10 21:26:24 +01:00
|
|
|
in fetchzip {
|
2017-02-05 05:46:34 +00:00
|
|
|
name = "babelstone-han-${version}";
|
|
|
|
|
2020-02-10 12:55:39 +00:00
|
|
|
# upstream download links are unversioned, so hash changes
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://web.archive.org/web/20200210125314/https://www.babelstone.co.uk/Fonts/Download/BabelStoneHan.zip";
|
2017-08-10 21:26:24 +01:00
|
|
|
postFetch = ''
|
2017-02-05 05:46:34 +00:00
|
|
|
mkdir -p $out/share/fonts/truetype
|
2017-08-10 21:26:24 +01:00
|
|
|
unzip $downloadedFile '*.ttf' -d $out/share/fonts/truetype
|
2017-02-05 05:46:34 +00:00
|
|
|
'';
|
2020-02-10 12:55:39 +00:00
|
|
|
sha256 = "018isk3hbzsihzrxavgjbn485ngzvlm96npqx9y7zpkxsssslc4w";
|
2017-02-05 05:46:34 +00:00
|
|
|
|
2019-05-13 02:55:32 +01:00
|
|
|
meta = with lib; {
|
2018-04-16 17:49:02 +01:00
|
|
|
description = "Unicode CJK font with over 36000 Han characters";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.babelstone.co.uk/Fonts/Han.html";
|
2017-02-05 05:46:34 +00:00
|
|
|
|
|
|
|
license = licenses.free;
|
|
|
|
platforms = platforms.all;
|
2020-02-10 12:55:39 +00:00
|
|
|
maintainers = with maintainers; [ volth emily ];
|
2017-02-05 05:46:34 +00:00
|
|
|
};
|
|
|
|
}
|