summary refs log blame commit diff
path: root/pkgs/data/fonts/lxgw-wenkai/default.nix
blob: bb36d9a920a56c59c54a24828b47f4b76fb58456 (plain) (tree)
1
2
3
4
5
6
7
8
9

                  



                        


                                                                                                          
                                      




                                           

     
                                                               








                                                                                 
{ lib, fetchzip }:

fetchzip rec {
  pname = "lxgw-wenkai";
  version = "1.245.1";

  url = "https://github.com/lxgw/LxgwWenKai/releases/download/v${version}/lxgw-wenkai-v${version}.tar.gz";

  postFetch = ''
    mkdir -p $out/share/fonts/truetype
    mv $out/*.ttf $out/share/fonts/truetype

    shopt -s extglob dotglob
    rm -rf $out/!(share)
    shopt -u extglob dotglob
  '';

  hash = "sha256-4RQ+aqAZPQH3t6v2KvrNWgYT3J3uMuY34XTuvyLEOeI=";

  meta = with lib; {
    homepage = "https://lxgw.github.io/";
    description = "An open-source Chinese font derived from Fontworks' Klee One";
    license = licenses.ofl;
    platforms = platforms.all;
    maintainers = with maintainers; [ elliot ];
  };
}