1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00
nixpkgs/pkgs/data/fonts/babelstone-han/default.nix
2020-04-10 17:54:53 +01:00

25 lines
742 B
Nix

{ lib, fetchzip }:
let
version = "13.0.3";
in fetchzip {
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";
postFetch = ''
mkdir -p $out/share/fonts/truetype
unzip $downloadedFile '*.ttf' -d $out/share/fonts/truetype
'';
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;
maintainers = with maintainers; [ volth emily ];
};
}