about summary refs log tree commit diff
path: root/pkgs/by-name/lx
diff options
context:
space:
mode:
authorLucius Hu <lebensterben@users.noreply.github.com>2024-05-06 01:02:00 -0400
committerLucius Hu <lebensterben@users.noreply.github.com>2024-05-06 01:02:00 -0400
commit15be700779460a73b330785c35579d3f881be8df (patch)
treef1626f910347a66dca0be6d58e06acedac8c2796 /pkgs/by-name/lx
parentdd4070b45f7c18fba29ce00ff979c19b389350ae (diff)
lxgw-wenkai-tc: init at version 1.330
Added `lxgw-wenkai-tc`, a Traditional Chinese font variation of the existing package
`lxgw-wenkai`.
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 ];
+  };
+}