2023-01-20 10:41:00 +00:00
|
|
|
# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
|
2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchzip }:
|
|
|
|
|
|
|
|
let
|
|
|
|
version = "13.0.3";
|
2023-01-20 10:41:00 +00:00
|
|
|
in (fetchzip {
|
2020-04-24 23:36:52 +00:00
|
|
|
name = "babelstone-han-${version}";
|
|
|
|
|
|
|
|
# upstream download links are unversioned, so hash changes
|
|
|
|
url = "https://web.archive.org/web/20200210125314/https://www.babelstone.co.uk/Fonts/Download/BabelStoneHan.zip";
|
|
|
|
sha256 = "018isk3hbzsihzrxavgjbn485ngzvlm96npqx9y7zpkxsssslc4w";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Unicode CJK font with over 36000 Han characters";
|
|
|
|
homepage = "https://www.babelstone.co.uk/Fonts/Han.html";
|
|
|
|
|
|
|
|
license = licenses.free;
|
|
|
|
platforms = platforms.all;
|
2022-07-14 12:49:19 +00:00
|
|
|
maintainers = with maintainers; [ emily ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-01-20 10:41:00 +00:00
|
|
|
}).overrideAttrs (_: {
|
|
|
|
postFetch = ''
|
|
|
|
mkdir -p $out/share/fonts/truetype
|
|
|
|
unzip $downloadedFile '*.ttf' -d $out/share/fonts/truetype
|
|
|
|
'';
|
|
|
|
})
|