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
commit 32d54367c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -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 ];