3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/fonts/babelstone-han/default.nix

25 lines
742 B
Nix
Raw Normal View History

{ lib, fetchzip }:
2017-02-05 05:46:34 +00:00
let
2020-02-10 12:55:39 +00:00
version = "13.0.3";
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
url = "https://web.archive.org/web/20200210125314/https://www.babelstone.co.uk/Fonts/Download/BabelStoneHan.zip";
postFetch = ''
2017-02-05 05:46:34 +00:00
mkdir -p $out/share/fonts/truetype
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
meta = with lib; {
description = "Unicode CJK font with over 36000 Han characters";
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
};
}