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

let
  version = "0.9.45";
in fetchzip rec {
  name = "wqy-zenhei-${version}";

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

  postFetch = ''
    tar -xzf $downloadedFile --strip-components=1
    mkdir -p $out/share/fonts
    install -m644 *.ttc $out/share/fonts/
  '';

  sha256 = "0hbjq6afcd63nsyjzrjf8fmm7pn70jcly7fjzjw23v36ffi0g255";

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