Merge pull request #192152 from zendo/lxgw-up

authored by Sandro and committed by GitHub bdca09b1 9806415f

+10 -6
+10 -6
pkgs/data/fonts/lxgw-wenkai/default.nix
··· 1 1 { lib, fetchzip }: 2 2 3 - let version = "1.222"; in 4 - fetchzip { 5 - name = "lxgw-wenkai-${version}"; 3 + fetchzip rec { 4 + pname = "lxgw-wenkai"; 5 + version = "1.245.1"; 6 + 6 7 url = "https://github.com/lxgw/LxgwWenKai/releases/download/v${version}/lxgw-wenkai-v${version}.tar.gz"; 7 8 8 9 postFetch = '' 9 - tar -xzvf $downloadedFile --strip-components=1 10 10 mkdir -p $out/share/fonts/truetype 11 - cp *.ttf $out/share/fonts/truetype 11 + mv $out/*.ttf $out/share/fonts/truetype 12 + 13 + shopt -s extglob dotglob 14 + rm -rf $out/!(share) 15 + shopt -u extglob dotglob 12 16 ''; 13 17 14 - sha256 = "sha256-u2NTEYZrotOHktc2R5RWMFqeZ775/IpYJSUBO6PWijM="; 18 + hash = "sha256-4RQ+aqAZPQH3t6v2KvrNWgYT3J3uMuY34XTuvyLEOeI="; 15 19 16 20 meta = with lib; { 17 21 homepage = "https://lxgw.github.io/";