c594a97518
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
27 lines
707 B
Nix
27 lines
707 B
Nix
{ 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 ];
|
|
};
|
|
}
|