2019-05-13 03:55:32 +02:00
|
|
|
{ lib, fetchzip }:
|
2017-02-05 06:46:34 +01:00
|
|
|
|
2017-08-10 22:26:24 +02:00
|
|
|
let
|
2020-02-10 13:55:39 +01:00
|
|
|
version = "13.0.3";
|
2017-08-10 22:26:24 +02:00
|
|
|
in fetchzip {
|
2017-02-05 06:46:34 +01:00
|
|
|
name = "babelstone-han-${version}";
|
|
|
|
|
2020-02-10 13:55:39 +01:00
|
|
|
# upstream download links are unversioned, so hash changes
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "https://web.archive.org/web/20200210125314/https://www.babelstone.co.uk/Fonts/Download/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
|
|
|
'';
|
2020-02-10 13:55:39 +01:00
|
|
|
sha256 = "018isk3hbzsihzrxavgjbn485ngzvlm96npqx9y7zpkxsssslc4w";
|
2017-02-05 06:46:34 +01:00
|
|
|
|
2019-05-13 03:55:32 +02:00
|
|
|
meta = with lib; {
|
2018-04-16 18:49:02 +02:00
|
|
|
description = "Unicode CJK font with over 36000 Han characters";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.babelstone.co.uk/Fonts/Han.html";
|
2017-02-05 06:46:34 +01:00
|
|
|
|
|
|
|
license = licenses.free;
|
|
|
|
platforms = platforms.all;
|
2020-02-10 13:55:39 +01:00
|
|
|
maintainers = with maintainers; [ volth emily ];
|
2017-02-05 06:46:34 +01:00
|
|
|
};
|
|
|
|
}
|