NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.37k stars 13.6k forks source link

Package request: rime-japanese #295527

Open Freed-Wu opened 6 months ago

Freed-Wu commented 6 months ago

Project description

Input method for typing Japanese with RIME

Metadata


Add a :+1: reaction to issues you find important.

pluiedev commented 6 months ago

Hm, this won't be trivial — generateFetchSchema.sh under rime-data is designed to only work for schemas under the rime organization, and needs to be rewritten to support repos under other owners... I'll see what we can do

Freed-Wu commented 6 months ago

In fact, we can override rimeDataPkgs to do this, don't need to modify rime-data:

let
  rimeDataPkgs = with pkgs; [
    rime-data
    rime-japanese
  ];
in
{
  i18n.inputMethod.fcitx5.addons = with pkgs; [
    (fcitx5-rime.override { rimeDataPkgs = rimeDataPkgs; })
  ];
  i18n.inputMethod.ibus.engines = with pkgs.ibus-engines; [
    (rime.override { rimeDataPkgs = rimeDataPkgs; })
  ];
}
pluiedev commented 6 months ago

In fact, we can override rimeDataPkgs to do this, don't need to modify rime-data:

let
  rimeDataPkgs = with pkgs; [
    rime-data
    rime-japanese
  ];
in
{
  i18n.inputMethod.fcitx5.addons = with pkgs; [
    (fcitx5-rime.override { rimeDataPkgs = rimeDataPkgs; })
  ];
  i18n.inputMethod.ibus.engines = with pkgs.ibus-engines; [
    (rime.override { rimeDataPkgs = rimeDataPkgs; })
  ];
}

Hmmmmm... alright, lemme see if I can get away with just packaging rime-japanese itself then