mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 21:10:08 +00:00
ibus-libpinyin: fix build with opencc 1.4.0
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user