diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-10-18 21:37:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-18 21:37:02 +0200 |
commit | bdca09b1f95699db3f1db5fb9adfcf32a25570fb (patch) | |
tree | c42110858b91e34ed598e741e62286cab39f33a2 /pkgs/data | |
parent | 9806415f8579fe5e3ea121e7cd9decea56b808a8 (diff) | |
parent | 703878418fd940d0770954ba8188f4184340f66f (diff) |
Merge pull request #192152 from zendo/lxgw-up
Diffstat (limited to 'pkgs/data')
-rw-r--r-- | pkgs/data/fonts/lxgw-wenkai/default.nix | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/pkgs/data/fonts/lxgw-wenkai/default.nix b/pkgs/data/fonts/lxgw-wenkai/default.nix index a5ead2274b805..bb36d9a920a56 100644 --- a/pkgs/data/fonts/lxgw-wenkai/default.nix +++ b/pkgs/data/fonts/lxgw-wenkai/default.nix @@ -1,17 +1,21 @@ { lib, fetchzip }: -let version = "1.222"; in -fetchzip { - name = "lxgw-wenkai-${version}"; +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 = '' - tar -xzvf $downloadedFile --strip-components=1 mkdir -p $out/share/fonts/truetype - cp *.ttf $out/share/fonts/truetype + mv $out/*.ttf $out/share/fonts/truetype + + shopt -s extglob dotglob + rm -rf $out/!(share) + shopt -u extglob dotglob ''; - sha256 = "sha256-u2NTEYZrotOHktc2R5RWMFqeZ775/IpYJSUBO6PWijM="; + hash = "sha256-4RQ+aqAZPQH3t6v2KvrNWgYT3J3uMuY34XTuvyLEOeI="; meta = with lib; { homepage = "https://lxgw.github.io/"; |