Skip to content

Commit

Permalink
fcitx5-mozc: use cd instead of sourceRoot
Browse files Browse the repository at this point in the history
  • Loading branch information
musjj committed Oct 8, 2024
1 parent b8c0860 commit ba0f4f4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkgs/by-name/fc/fcitx5-mozc/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ buildBazelPackage {
hash = "sha256-1EZjEbMl+LRipH5gEgFpaKP8uEKPfupHmiiTNJc/T1k=";
};

sourceRoot = "source/src";

nativeBuildInputs = [
gettext
pkg-config
Expand All @@ -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;
Expand All @@ -66,6 +64,10 @@ buildBazelPackage {
sha256 = "sha256-wz2lJckr7Pu4jtoejjFv8LdjVO2+ferrS473M4jc86I=";
};

preConfigure = ''
cd src
'';

buildAttrs = {
installPhase = ''
runHook preInstall
Expand Down

0 comments on commit ba0f4f4

Please sign in to comment.