From 20f1284263c4bfd3b9c544ba27502da3d4d81d27 Mon Sep 17 00:00:00 2001 From: ulic-youthlic Date: Sun, 6 Jul 2025 01:57:50 +0800 Subject: [PATCH] pkgs: Add package for rime-yuhao_star --- overlays/additions/default.nix | 1 + overlays/additions/rime-yuhaostar.nix | 5 +++++ pkgs/_sources/generated.json | 15 +++++++++++++++ pkgs/_sources/generated.nix | 9 +++++++++ pkgs/default.nix | 1 + pkgs/nvfetcher.toml | 5 +++++ pkgs/rime-yuhaostar.nix | 25 +++++++++++++++++++++++++ 7 files changed, 61 insertions(+) create mode 100644 overlays/additions/rime-yuhaostar.nix create mode 100644 pkgs/rime-yuhaostar.nix diff --git a/overlays/additions/default.nix b/overlays/additions/default.nix index 0be1dc4..4825574 100644 --- a/overlays/additions/default.nix +++ b/overlays/additions/default.nix @@ -8,6 +8,7 @@ in ./radicle-ci-broker.nix ./wallpapers.nix ./waydroid-script.nix + ./rime-yuhaostar.nix ./pkgsNoCuda.nix ] diff --git a/overlays/additions/rime-yuhaostar.nix b/overlays/additions/rime-yuhaostar.nix new file mode 100644 index 0000000..b9de88e --- /dev/null +++ b/overlays/additions/rime-yuhaostar.nix @@ -0,0 +1,5 @@ +{outputs, ...}: _final: prev: let + inherit (prev.stdenv.hostPlatform) system; +in { + inherit (outputs.packages.${system}) rime-yuhaostar; +} diff --git a/pkgs/_sources/generated.json b/pkgs/_sources/generated.json index aefd66d..88deee2 100644 --- a/pkgs/_sources/generated.json +++ b/pkgs/_sources/generated.json @@ -150,6 +150,21 @@ }, "version": "d5f684b2ec12dc875ec0278c8e2fe71faaa88d38" }, + "rime-yuhaostar": { + "cargoLocks": null, + "date": null, + "extract": null, + "name": "rime-yuhaostar", + "passthru": null, + "pinned": false, + "src": { + "name": "yustar_v3.8.0.zip", + "sha256": "sha256-aUMsuXkiK/FVVi6qPg+dphAOpRyGiDKsT2wD2VBShKo=", + "type": "url", + "url": "http://ys-j.ysepan.com/wap/zhuyuhao/91SbOjgNKE7A2PMH8A/we7hF96sa52g4EccbuakeGd8LE3NGc/宇浩星陳_v3.8.0.zip" + }, + "version": "v3.8.0" + }, "spotx": { "cargoLocks": null, "date": "2025-07-02", diff --git a/pkgs/_sources/generated.nix b/pkgs/_sources/generated.nix index de096a0..af9baef 100644 --- a/pkgs/_sources/generated.nix +++ b/pkgs/_sources/generated.nix @@ -96,6 +96,15 @@ }; date = "2025-06-27"; }; + rime-yuhaostar = { + pname = "rime-yuhaostar"; + version = "v3.8.0"; + src = fetchurl { + url = "http://ys-j.ysepan.com/wap/zhuyuhao/91SbOjgNKE7A2PMH8A/we7hF96sa52g4EccbuakeGd8LE3NGc/\23431\28009\26143\38515_v3.8.0.zip"; + name = "yustar_v3.8.0.zip"; + sha256 = "sha256-aUMsuXkiK/FVVi6qPg+dphAOpRyGiDKsT2wD2VBShKo="; + }; + }; spotx = { pname = "spotx"; version = "a0df4fcaace5efc1b58acd39b2c4d1750bb81057"; diff --git a/pkgs/default.nix b/pkgs/default.nix index b01f306..2c4d28c 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -21,6 +21,7 @@ in { editor-runtime = callPackage ./editor-runtime.nix {}; cliphist = callPackage ./cliphist.nix {}; radicle-ci-broker = callPackage ./radicle-ci-broker.nix {}; + rime-yuhaostar = callPackage ./rime-yuhaostar.nix {}; noto-serif-cjk = callPackage ./noto-serif-cjk.nix {}; noto-sans-cjk = callPackage ./noto-sans-cjk.nix {}; diff --git a/pkgs/nvfetcher.toml b/pkgs/nvfetcher.toml index 6d97a42..26b6d2d 100644 --- a/pkgs/nvfetcher.toml +++ b/pkgs/nvfetcher.toml @@ -49,3 +49,8 @@ fetch.url = "http://wallpaper.youthlic.social/hieda-no-akyuu-touhou.1920x1080.mp ["wallpaper_outer-wilds.3840x2160.mp4"] src.cmd = "curl -sL http://wallpaper.youthlic.social/outer-wilds.3840x2160.mp4 | sha256sum | cut -d ' ' -f 1" fetch.url = "http://wallpaper.youthlic.social/outer-wilds.3840x2160.mp4" + +[rime-yuhaostar] +src.github = "forfudan/yuhao-ime-release" +fetch.url = "http://ys-j.ysepan.com/wap/zhuyuhao/91SbOjgNKE7A2PMH8A/we7hF96sa52g4EccbuakeGd8LE3NGc/宇浩星陳_$ver.zip" +url.name = "yustar_$ver.zip" diff --git a/pkgs/rime-yuhaostar.nix b/pkgs/rime-yuhaostar.nix new file mode 100644 index 0000000..58d18ec --- /dev/null +++ b/pkgs/rime-yuhaostar.nix @@ -0,0 +1,25 @@ +{ + srcs, + stdenv, + unzip, +}: let + inherit (srcs.rime-yuhaostar) src version; +in + stdenv.mkDerivation { + pname = "rime-yuhaostar"; + version = version; + inherit src; + nativeBuildInputs = [unzip]; + + sourceRoot = "schema"; + + installPhase = '' + runHook preInstall + + mkdir -p $out/share/rime-data + cp -rt $out/share/rime-data -- ./* + rm $out/share/rime-data/default.custom.yaml + + runHook postInstall + ''; + }