about summary refs log tree commit diff
path: root/pkgs/by-name/lx
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2024-05-13 11:34:43 +0200
committerGitHub <noreply@github.com>2024-05-13 11:34:43 +0200
commitf293e4ebbc93cf68f4d46ff3da79b5eef109db18 (patch)
treece0950b90330c91acd37a86c7fd03bc62161a6ed /pkgs/by-name/lx
parent5f8fffdec4ac2cacd7e152185b21f687f48b2ee0 (diff)
parent46d128df320ac937879aeba07848fe4a32e8ad48 (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.nix30
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 ];
+  };
+}