about summary refs log tree commit diff
path: root/nixpkgs/pkgs/data/fonts/babelstone-han/default.nix
blob: 9839295653d1295b8700a36c200b148f9adf4c6d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, stdenvNoCC, fetchzip }:

stdenvNoCC.mkDerivation {
  pname = "babelstone-han";
  version = "13.0.3";

  src = fetchzip {
    # upstream download links are unversioned, so hash changes
    url = "https://web.archive.org/web/20200210125314/https://www.babelstone.co.uk/Fonts/Download/BabelStoneHan.zip";
    hash = "sha256-LLhNtHu2hh5DY2XVSrLuVzzR6OtMdSSHetyA0k1IFs0=";
  };

  installPhase = ''
    runHook preInstall

    mkdir -p $out/share/fonts/truetype
    cp *.ttf $out/share/fonts/truetype

    runHook postInstall
  '';

  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 ];
  };
}