Change:
Describe the bug I was trying to upgrade my system to latest unstable when I encountered this error: error: --- Error
--------------------- nix-build builder for '/nix/store/4akxpw50h059071m68rm96qi3jmdv7zi-ibus-mozc-' failed with exit code 1; last 10 log lines: File "", line 854, in BuildMain BuildWithNinja(options, targets) File "", line 828, in BuildWithNinja RunOrDie([ninja, '-C', buildarg] + ninjatargets) File "", line 99, in RunOrDie '=========='])) ERROR: ninja -C outlinux/Release ibusmozc mozcemacshelper mozcserver mozctool mozc_renderer
cc: because of .
likewsie fcitx-mozc stopped working. Seems like there is this fork of google-mozc with more recent commits but changing upstream would require more changes:

Discussion:
}; in clangStdenv.mkDerivation rec { name    = "fcitx-mozc-${version}"; <del> version = "2.20.2673.102"; </del> <ins> version = "2.23.2815.102"; </ins> src = fetchFromGitHub { owner  = "google"; repo   = "mozc"; <del> rev    = "280e38fe3d9db4df52f0713acf2ca65898cd697a"; sha256 = "0s599f817gjgqynm4n1yll1ipd25ai2c55y8k6wvhg9s7qaxnyhs"; </del> <ins> rev    = "afb03ddfe72dde4cf2409863a3bfea160f7a66d8"; sha256 = "0w2dy2j9x5nc7x3g95j17r3m60vbfyn5j617h7js9xryv33yzpgx"; </ins> }; nativeBuildInputs = [ gyp which ninja python pkgconfig ];

tar -xzf ${icons} -C $sourceRoot/src ''; <del> patch_version = "2.18.2612.102.1"; </del> <ins> patch_version = "${version}.1"; </ins> patches = [ (fetchpatch rec { name   = "fcitx-mozc-${patch_version}.patch"; url    = "https://download.fcitx-im.org/fcitx-mozc/${name}"; <del> sha256 = "1f9m4310kz09v5qvnv75ka2vq63m7by023qrkpddgq4dv7gxx3ca"; </del> <ins> sha256 = "0a8q3vzcbai1ccdrl6qdb81gvbw8aby4lqkl6qs9hg68p6zg42hg"; </ins> }) # https://github.com/google/mozc/pull/444 - fix for gcc8 STL (fetchpatch { url = "https://github.com/google/mozc/commit/82d38f929882a9c62289b179c6fe41efed249987.patch"; sha256 = "07cja1b7qfsd3i76nscf1zwiav74h7d6h2g9g2w4bs3h1mc9jwla"; }) <ins> # Support dates after 2019 (fetchpatch { url = "https://salsa.debian.org/debian/mozc/-/raw/master/debian/patches/add_support_new_japanese_era.patch"; sha256 = "1dsiiglrmm8i8shn2hv0j2b8pv6miysjrimj4569h606j4lwmcw2"; }) </ins> ]; postPatch = ''

''; configurePhase = '' <del> export GYP_DEFINES="document_dir=$out/share/doc/mozc use_libzinnia=1 use_libprotobuf=1" </del> <ins> export GYP_DEFINES="document_dir=$out/share/doc/mozc use_libzinnia=1 use_libprotobuf=1 use_fcitx5=0" </ins> cd src && python build_mozc.py gyp --gypdir=${gyp}/bin --server_dir=$out/lib/mozc '';

downloadPage  = "http://download.fcitx-im.org/fcitx-mozc/"; license       = licenses.free; platforms     = platforms.linux; <del> maintainers   = [ maintainers.ericsagnes ]; </del> <ins> maintainers   = with maintainers; [ gebner ericsagnes ]; </ins> }; }

url = "https://github.com/google/mozc/commit/82d38f929882a9c62289b179c6fe41efed249987.patch"; sha256 = "07cja1b7qfsd3i76nscf1zwiav74h7d6h2g9g2w4bs3h1mc9jwla"; }) <ins> # Support dates after 2019 (fetchpatch { url = "https://salsa.debian.org/debian/mozc/-/raw/master/debian/patches/add_support_new_japanese_era.patch"; sha256 = "1dsiiglrmm8i8shn2hv0j2b8pv6miysjrimj4569h606j4lwmcw2"; }) </ins> ]; postUnpack = ''

mozc = callPackage ../tools/inputmethods/ibus-engines/ibus-mozc { python = python2; inherit (python2Packages) gyp; <del> protobuf = pkgs.protobuf.overrideDerivation (oldAttrs: { stdenv = clangStdenv; }); </del> <ins> protobuf = pkgs.protobuf3_8.overrideDerivation (oldAttrs: { stdenv = clangStdenv; }); </ins> }; table = callPackage ../tools/inputmethods/ibus-engines/ibus-table { };

mozc = callPackage ../tools/inputmethods/fcitx-engines/fcitx-mozc { python = python2; inherit (python2Packages) gyp; <del> protobuf = pkgs.protobuf.overrideDerivation (oldAttrs: { stdenv = clangStdenv; }); </del> <ins> protobuf = pkgs.protobuf3_8.overrideDerivation (oldAttrs: { stdenv = clangStdenv; }); </ins> }; table-extra = callPackage ../tools/inputmethods/fcitx-engines/fcitx-table-extra { };