opencc: use system rapidjson to fix gcc 14 error (#344004)

This commit is contained in:
Lin Jian 2024-09-25 02:26:28 +08:00 committed by GitHub
commit cd039ce1ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,6 +5,8 @@
cmake,
python3,
opencc,
rapidjson,
gitUpdater,
}:
stdenv.mkDerivation rec {
@ -27,6 +29,19 @@ stdenv.mkDerivation rec {
opencc # opencc_dict
];
buildInputs = [
rapidjson
];
# TODO use more system dependencies
cmakeFlags = [
(lib.cmakeBool "USE_SYSTEM_RAPIDJSON" true)
];
passthru = {
updateScript = gitUpdater { rev-prefix = "ver."; };
};
meta = with lib; {
homepage = "https://github.com/BYVoid/OpenCC";
license = licenses.asl20;