summary refs log tree commit diff
path: root/pkgs/data/fonts/wqy-microhei/default.nix
blob: dc87e6b634f7b62fe08fd0d79ab2cc049ef11f21 (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
{ lib, fetchzip }:

fetchzip rec {
  name = "wqy-microhei-0.2.0-beta";

  url = "mirror://sourceforge/wqy/${name}.tar.gz";

  postFetch = ''
    tar -xzf $downloadedFile --strip-components=1
    install -Dm644 wqy-microhei.ttc $out/share/fonts/wqy-microhei.ttc
  '';

  sha256 = "0i5jh7mkp371fxqmsvn7say075r641yl4hq26isjyrqvb8cv92a9";

  meta = {
    description = "A (mainly) Chinese Unicode font";
    homepage = http://wenq.org;
    license = lib.licenses.asl20;
    maintainers = [ lib.maintainers.pkmx ];
    platforms = lib.platforms.all;
  };
}