From ba0f4f4fbec72cf638a6c5281607e5089941fc40 Mon Sep 17 00:00:00 2001 From: musjj <72612857+musjj@users.noreply.github.com> Date: Tue, 8 Oct 2024 22:42:06 +0700 Subject: [PATCH] fcitx5-mozc: use cd instead of sourceRoot --- pkgs/by-name/fc/fcitx5-mozc/package.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/fc/fcitx5-mozc/package.nix b/pkgs/by-name/fc/fcitx5-mozc/package.nix index 13f863478ad32..b455db820e84e 100644 --- a/pkgs/by-name/fc/fcitx5-mozc/package.nix +++ b/pkgs/by-name/fc/fcitx5-mozc/package.nix @@ -24,8 +24,6 @@ buildBazelPackage { hash = "sha256-1EZjEbMl+LRipH5gEgFpaKP8uEKPfupHmiiTNJc/T1k="; }; - sourceRoot = "source/src"; - nativeBuildInputs = [ gettext pkg-config @@ -39,7 +37,7 @@ buildBazelPackage { ]; postPatch = '' - sed -i -e 's|^\(LINUX_MOZC_SERVER_DIR = \).\+|\1"${mozc}/lib/mozc"|' config.bzl + sed -i -e 's|^\(LINUX_MOZC_SERVER_DIR = \).\+|\1"${mozc}/lib/mozc"|' src/config.bzl ''; bazel = bazel_7; @@ -66,6 +64,10 @@ buildBazelPackage { sha256 = "sha256-wz2lJckr7Pu4jtoejjFv8LdjVO2+ferrS473M4jc86I="; }; + preConfigure = '' + cd src + ''; + buildAttrs = { installPhase = '' runHook preInstall