diff --git a/pkgs/by-name/mo/mozc/package.nix b/pkgs/by-name/mo/mozc/package.nix index 16e88d44278f..f5773a640f0c 100644 --- a/pkgs/by-name/mo/mozc/package.nix +++ b/pkgs/by-name/mo/mozc/package.nix @@ -5,7 +5,7 @@ qt6, pkg-config, protobuf_27, - bazel, + bazel_7, ibus, unzip, xdg-utils, @@ -43,14 +43,18 @@ buildBazelPackage rec { dontAddBazelOpts = true; removeRulesCC = false; - inherit bazel; + bazel = bazel_7; fetchAttrs = { - sha256 = "sha256-+N7AhSemcfhq6j0IUeWZ0DyVvr1l5FbAkB+kahTy3pM="; + hash = "sha256-c+v2vWvTmwJ7MFh3VJlUh+iSINjsX66W9K0UBX5K/1s="; - # remove references of buildInputs and zip code files preInstall = '' - rm -rv $bazelOut/external/{ibus,qt_linux,zip_code_*} + # Remove zip code data. It will be replaced with jp-zip-codes from nixpkgs + rm -rv "$bazelOut"/external/zip_code_{jigyosyo,ken_all} + # Remove references to buildInputs + rm -rv "$bazelOut"/external/{ibus,qt_linux} + # Remove reference to the host platform + rm -rv "$bazelOut"/external/host_platform ''; };