Unverified Commit 0726f235 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

fcitx5-chinese-addons: patch CLOUDPINYIN build flag (#475084)

parents 5b08314d 91bfb236
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@
        enable = true;
        type = "fcitx5";
        fcitx5.addons = [
          pkgs.fcitx5-chinese-addons
          pkgs.qt6Packages.fcitx5-chinese-addons
          pkgs.fcitx5-hangul
          pkgs.fcitx5-m17n
          pkgs.fcitx5-mozc
@@ -81,7 +81,7 @@
      user = nodes.machine.users.users.alice;
      xauth = "${user.home}/.Xauthority";
    in
    ''
    /* python */ ''
      start_all()

      machine.wait_for_x()
+10 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchurl,
  fetchpatch,
  fetchFromGitHub,
  cmake,
  extra-cmake-modules,
@@ -50,6 +51,15 @@ stdenv.mkDerivation rec {
    fcitx5-lua
  ];

  patches = [
    # Without this patch, setting ENABLE_CLOUDPINYIN to off would fail to build
    (fetchpatch {
      name = "cloudpinyin-disable-build";
      url = "https://github.com/fcitx/fcitx5-chinese-addons/commit/024fff9c8587ca2fb01905e9a25df838e7d99da2.patch";
      hash = "sha256-Mo5l8tsn1JQxTFHxOZfQRmbCeWZHLyxfn2Qwv/gQXGA=";
    })
  ];

  prePatch = ''
    ln -s ${pyStroke} modules/pinyinhelper/$(stripHash ${pyStroke})
    ln -s ${pyTable} modules/pinyinhelper/$(stripHash ${pyTable})