depot/third_party/nixpkgs/pkgs/data/fonts/babelstone-han/default.nix
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

26 lines
849 B
Nix

# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
{ 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";
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; [ emily ];
};
}).overrideAttrs (_: {
postFetch = ''
mkdir -p $out/share/fonts/truetype
unzip $downloadedFile '*.ttf' -d $out/share/fonts/truetype
'';
})