diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-05-13 11:34:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-13 11:34:43 +0200 |
commit | f293e4ebbc93cf68f4d46ff3da79b5eef109db18 (patch) | |
tree | ce0950b90330c91acd37a86c7fd03bc62161a6ed /pkgs/by-name/lx | |
parent | 5f8fffdec4ac2cacd7e152185b21f687f48b2ee0 (diff) | |
parent | 46d128df320ac937879aeba07848fe4a32e8ad48 (diff) |
Merge pull request #309462 from lebensterben/lxgw-wenkai-tc
lxgw-wenkai-tc: init at 1.330
Diffstat (limited to 'pkgs/by-name/lx')
-rw-r--r-- | pkgs/by-name/lx/lxgw-wenkai-tc/package.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/by-name/lx/lxgw-wenkai-tc/package.nix b/pkgs/by-name/lx/lxgw-wenkai-tc/package.nix new file mode 100644 index 0000000000000..7b93d94b42cef --- /dev/null +++ b/pkgs/by-name/lx/lxgw-wenkai-tc/package.nix @@ -0,0 +1,30 @@ +{ stdenvNoCC +, fetchurl +, lib +}: + +stdenvNoCC.mkDerivation rec { + pname = "lxgw-wenkai-tc"; + version = "1.330"; + src = fetchurl { + url = "https://github.com/lxgw/LxgwWenKaiTC/releases/download/v${version}/${pname}-v${version}.tar.gz"; + hash = "sha256-qpX5shH1HbGMa287u/R1rMFgQeAUC0wwKFVD+QSTyho="; + }; + + installPhase = '' + runHook preInstall + + mkdir -p $out/share/fonts/truetype + mv *.ttf $out/share/fonts/truetype + + runHook postInstall + ''; + + meta = with lib; { + homepage = "https://github.com/lxgw/LxgwWenKaiTC"; + description = "The Traditional Chinese Edition of LXGW WenKai."; + license = licenses.ofl; + platforms = platforms.all; + maintainers = with maintainers; [ lebensterben ]; + }; +} |