mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
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:
parent
ac34133fb9
commit
36fed72b3b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user