3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/fonts/lxgw-wenkai/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
679 B
Nix
Raw Normal View History

2022-02-19 14:02:35 +00:00
{ lib, fetchzip }:
2022-03-18 09:32:05 +00:00
let version = "1.222"; in
2022-02-19 14:02:35 +00:00
fetchzip {
name = "lxgw-wenkai-${version}";
url = "https://github.com/lxgw/LxgwWenKai/releases/download/v${version}/lxgw-wenkai-v${version}.tar.gz";
postFetch = ''
tar -xzvf $downloadedFile --strip-components=1
mkdir -p $out/share/fonts/truetype
cp *.ttf $out/share/fonts/truetype
'';
2022-03-18 09:32:05 +00:00
sha256 = "sha256-u2NTEYZrotOHktc2R5RWMFqeZ775/IpYJSUBO6PWijM=";
2022-02-19 14:02:35 +00:00
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 ];
};
}