From e48d27cb8f382d5e7c190095a5f2cc22e9a18f7d Mon Sep 17 00:00:00 2001 From: Daniel Baker Date: Wed, 1 Jan 2025 21:02:01 -0800 Subject: [PATCH] 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. --- pkgs/by-name/fo/formatjson5/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/fo/formatjson5/package.nix b/pkgs/by-name/fo/formatjson5/package.nix index 112f94aa8358..c82393ab490e 100644 --- a/pkgs/by-name/fo/formatjson5/package.nix +++ b/pkgs/by-name/fo/formatjson5/package.nix @@ -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 ];