Commit dbd54cb

HPCesia <me@hpcesia.com>
2026-10-07 14:31:08
lxgw-neozhisong: init at 1.067
1 parent 4a1f52c
Changed files (3)
pkgs
lxgw-neozhisong
pkgs/lxgw-neozhisong/default.nix
@@ -0,0 +1,50 @@
+{
+  lib,
+  stdenvNoCC,
+  fetchurl,
+  installFonts,
+  nix-update-script,
+}: let
+  version = "1.067";
+
+  main = fetchurl {
+    url = "https://github.com/lxgw/LxgwNeoZhiSong/releases/download/v${version}/LXGWNeoZhiSong.ttf";
+    hash = "sha256-MrOY+cYnjE7TT0Ewd63SwvPIQDTUY68rnLmPEsTCxs0=";
+  };
+
+  plus = fetchurl {
+    url = "https://github.com/lxgw/LxgwNeoZhiSong/releases/download/v${version}/LXGWNeoZhiSongPlus.ttf";
+    hash = "sha256-Y5WVxlABhy0NoW2srrfeO6OWxkw3twoW/rFTYJG7bB8=";
+  };
+in
+  stdenvNoCC.mkDerivation {
+    pname = "lxgw-neozhisong";
+    inherit version;
+
+    src = main;
+
+    dontUnpack = true;
+
+    nativeBuildInputs = [installFonts];
+
+    preInstall = ''
+      install -m644 ${main} LXGWNeoZhiSong.ttf
+      install -m644 ${plus} LXGWNeoZhiSongPlus.ttf
+    '';
+
+    passthru = {
+      inherit plus;
+      updateScript = nix-update-script {
+        extraArgs = ["--custom-dep" "plus"];
+      };
+    };
+
+    preferLocalBuild = true;
+
+    meta = {
+      homepage = "https://github.com/lxgw/LxgwNeoZhiSong";
+      description = "Chinese serif font derived from IPAex Mincho and IPAmj Mincho";
+      license = lib.licenses.ipa;
+      platforms = lib.platforms.all;
+    };
+  }
default.nix
@@ -41,6 +41,8 @@ in rec {
 
   lxgw-marker-gothic = callPackage ./pkgs/lxgw-marker-gothic {};
 
+  lxgw-neozhisong = callPackage ./pkgs/lxgw-neozhisong {};
+
   miaomiaowu = callPackage ./pkgs/miaomiaowu {};
 
   localbooru-bin = callPackage ./pkgs/localbooru-bin {};
README.md
@@ -18,6 +18,7 @@
 | `kelivo` | [kelivo](https://github.com/Chevey339/kelivo) | `1.3.0` | [AGPL-3.0-only](https://spdx.org/licenses/AGPL-3.0-only.html) | LLM chat client |
 | `localbooru-bin` | [localbooru-bin](https://github.com/resucutie/localbooru) | `1.6.1` | [GPL-3.0-only](https://spdx.org/licenses/GPL-3.0-only.html) | Cross platform local booru collection that exclusively works on local storage, without selfhosting |
 | `lxgw-marker-gothic` | [lxgw-marker-gothic](https://github.com/lxgw/LxgwMarkerGothic) | `1.003` | [OFL-1.1](https://spdx.org/licenses/OFL-1.1.html) | Open-source Chinese font derived from Tanugo |
+| `lxgw-neozhisong` | [lxgw-neozhisong](https://github.com/lxgw/LxgwNeoZhiSong) | `1.067` | [IPA](https://spdx.org/licenses/IPA.html) | Chinese serif font derived from IPAex Mincho and IPAmj Mincho |
 | `miaomiaowu` | [miaomiaowu](https://github.com/iluobei/miaomiaowu) | `0.8.7` | [MIT](https://spdx.org/licenses/MIT.html) | Personal Clash subscriptions management system |
 | `mo2-lint` | [mo2-lint](https://github.com/Furglitch/modorganizer2-linux-installer) | `7.0.2` | [GPL-3.0-only](https://spdx.org/licenses/GPL-3.0-only.html) | An easy-to-use Mod Organizer 2 installer for Linux, rewrited in Python. |
 | `musly-player` | [musly-player](https://github.com/dddevid/Musly) | `2.0.2` | [CC-BY-NC-SA-4.0](https://spdx.org/licenses/CC-BY-NC-SA-4.0.html) | A beautiful Flutter music streaming client for Subsonic-compatible servers with a modern Apple Music-inspired UI. |