opencc: use system rapidjson to fix gcc 14 error

The bundled rapidjson is not new enough and causes compilation
error[1] in gcc 14.

[1]: https://hydra.nixos.org/build/273250179/log
This commit is contained in:
Lin Jian 2024-09-24 00:43:05 +08:00
parent ac34133fb9
commit 36fed72b3b
No known key found for this signature in database
GPG Key ID: A6698D36434F75A5

View File

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