mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
opencc: use system rapidjson to fix gcc 14 error (#344004)
This commit is contained in:
commit
cd039ce1ae
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user