@@ -0,0 +1,23 @@
1+{ lib, fetchzip }:
2+
3+let version = "1.210"; in
4+fetchzip {
5+ name = "lxgw-wenkai-${version}";
6+ url = "https://github.com/lxgw/LxgwWenKai/releases/download/v${version}/lxgw-wenkai-v${version}.tar.gz";
7+
8+ postFetch = ''
9+ tar -xzvf $downloadedFile --strip-components=1
10+ mkdir -p $out/share/fonts/truetype
11+ cp *.ttf $out/share/fonts/truetype
12+ '';
13+
14+ sha256 = "n8vnkoOJuUO4Gh+GUInZ/HJK5t4pD7MrPPaxDyH+0Qw=";
15+
16+ meta = with lib; {
17+ homepage = "https://lxgw.github.io/";
18+ description = "An open-source Chinese font derived from Fontworks' Klee One";
19+ license = licenses.ofl;
20+ platforms = platforms.all;
21+ maintainers = with maintainers; [ elliot ];
22+ };
23+}