Commit ba0f4f4f authored by musjj's avatar musjj
Browse files

fcitx5-mozc: use cd instead of sourceRoot

parent b8c08600
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -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