cargo-spellcheck: fix build

This commit is contained in:
Alex Martens 2024-04-20 10:53:00 -07:00
parent 65d8de75bd
commit f22430b657
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 ];