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

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