mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
fcitx5-chinese-addons: patch CLOUDPINYIN build flag
Without this patch, setting ENABLE_CLOUDPINYIN to off would fail to build
This commit is contained in:
parent
0744ef1b04
commit
b63937c09b
1 changed files with 10 additions and 0 deletions
|
|
@ -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})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue