Merge pull request #305597 from newAM/cargo-spellcheck-fix

cargo-spellcheck: fix build
This commit is contained in:
Weijia Wang
2024-04-21 17:27:48 +02:00
committed by GitHub
@@ -19,6 +19,11 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-6dhM+FzuLtKtRp2mpE9nlpT+0PBcgGqvBa9vqs6Rs7s=";
postPatch = ''
substituteInPlace src/lib.rs \
--replace "#![deny(dead_code)]" "#![warn(dead_code)]"
'';
nativeBuildInputs = [ rustPlatform.bindgenHook ];
buildInputs = lib.optionals stdenv.isDarwin [ Security SystemConfiguration ];