Unverified Commit b63937c0 authored by Léana 江's avatar Léana 江
Browse files

fcitx5-chinese-addons: patch CLOUDPINYIN build flag

Without this patch, setting ENABLE_CLOUDPINYIN to off would fail to build
parent 0744ef1b
Loading
Loading
Loading
Loading
+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})