formatjson5: fix missing_docs error

Rust 1.83 introduced changes to how `missing_docs` works.
https://releases.rs/docs/1.83.0/

This commit introduces a patch from a PR made against the upstream
source repository to fix the issue.
This commit is contained in:
Daniel Baker
2025-01-01 21:02:01 -08:00
parent ce6566efb4
commit e48d27cb8f
+8
View File
@@ -5,6 +5,7 @@
stdenv,
darwin,
nix-update-script,
fetchpatch,
}:
rustPlatform.buildRustPackage rec {
@@ -19,6 +20,13 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-Lredw/Fez+2U2++ShZcKTFCv8Qpai9YUvqvpGjG5W0o=";
};
patches = [
(fetchpatch {
url = "https://github.com/google/json5format/commit/32914546e7088b3d9173ae9a2f307effa87917bf.patch";
hash = "sha256-kAbRUL/FuhnxkC9Xo4J2bXt9nkMOLeJvgMmOoKnSxKc=";
})
];
cargoHash = "sha256-zPgaZPDyNVPmBXz6QwOYnmh/sbJ8aPST8znLMfIWejk=";
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Security ];