From c471e66f76ba0b2d9c6ba8a79b5f14732b2ac166 Mon Sep 17 00:00:00 2001 From: ncaq Date: Tue, 2 Jun 2026 12:55:41 +0900 Subject: [PATCH] emacsPackages.mozc: fix mozc_emacs_helper path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The substitution in melpa-packages.nix rewrote `"mozc_emacs_helper"` in `mozc.el` to `${pkgs.ibus-engines.mozc}/lib/mozc/mozc_emacs_helper`, but that path no longer exists. Since the Bazel-based rewrite and the optional ibus split in #483843, `mozc_emacs_helper` is installed at `$out/bin/` of the base `mozc` package, while `$out/lib/mozc/` only contains `mozc_server`, `mozc_renderer`, and `mozc_tool`. As a result, `mozc.el` invoked a non-existent helper and `mozc-mode` failed to start with > 変換エンジンプログラムの起動に失敗しました。 Switch the reference to `pkgs.mozc` so it points at the actual binary location and avoids pulling in the IBus front-end for Emacs users. Assisted-by: Claude Code (claude-opus-4-7) --- .../editors/emacs/elisp-packages/melpa-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix b/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix index e48cc56a2c3e..fae91613fd19 100644 --- a/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix +++ b/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix @@ -773,7 +773,7 @@ let mozc = super.mozc.overrideAttrs (attrs: { postPatch = attrs.postPatch or "" + '' substituteInPlace src/unix/emacs/mozc.el \ - --replace '"mozc_emacs_helper"' '"${pkgs.ibus-engines.mozc}/lib/mozc/mozc_emacs_helper"' + --replace '"mozc_emacs_helper"' '"${pkgs.mozc}/bin/mozc_emacs_helper"' ''; });