ibus-libpinyin: fix build with opencc 1.4.0

This commit is contained in:
Ming-Chuan
2026-08-17 16:29:35 -07:00
parent 72585d7cce
commit fa6b177e15

View File

@@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch2,
autoreconfHook,
gettext,
gobject-introspection,
@@ -32,6 +33,15 @@ stdenv.mkDerivation rec {
hash = "sha256-3QZHovjzGifWLFVudCnJOwMn/M3Nzfn8CZ1HpQwzUVw=";
};
patches = [
# Drop -std=c++0x, fix build with opencc >= 1.4.0 header files, which require C++17
(fetchpatch2 {
name = "fix-build-with-opencc-1.4.patch";
url = "https://github.com/libpinyin/ibus-libpinyin/commit/42ad7d20b803c10ce6d8921ccff5c6282bb4818c.patch?full_index=1";
hash = "sha256-ndAJd+EEyluvjZL1gXM8HbfgEtwQETw0Lu1WAwcou4M=";
})
];
nativeBuildInputs = [
autoreconfHook
gettext