Skip to content

Commit

Permalink
fcitx5-mozc: use our protobuf
Browse files Browse the repository at this point in the history
  • Loading branch information
FliegendeWurst committed Dec 21, 2024
1 parent 87dba28 commit 178429a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkgs/by-name/fc/fcitx5-mozc/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@
mozc,
nixosTests,
pkg-config,
protobuf_27,
python3,
stdenv,
unzip,
}:

buildBazelPackage {
pname = "fcitx5-mozc";
version = "2.30.5544.102";
version = "2.30.5544.102"; # make sure to update protobuf if needed

src = fetchFromGitHub {
owner = "fcitx";
Expand All @@ -38,6 +39,9 @@ buildBazelPackage {
];

postPatch = ''
# replace protobuf with our own
rm -r src/third_party/protobuf
cp -r ${protobuf_27.src} src/third_party/protobuf
sed -i -e 's|^\(LINUX_MOZC_SERVER_DIR = \).\+|\1"${mozc}/lib/mozc"|' src/config.bzl
'';

Expand Down

0 comments on commit 178429a

Please sign in to comment.