diff options
author | Alex Martens <alex@thinglab.org> | 2024-04-20 10:53:00 -0700 |
---|---|---|
committer | Alex Martens <alex@thinglab.org> | 2024-04-20 10:53:12 -0700 |
commit | f22430b657f73a8be8eb933bee08ca3d19b03ed9 (patch) | |
tree | a13ebd3b89def325919a74fde0acbe9e5a53cb8e /pkgs/development/tools/rust | |
parent | 65d8de75bd039037e896b6c9c18c7f426f74d668 (diff) |
cargo-spellcheck: fix build
Diffstat (limited to 'pkgs/development/tools/rust')
-rw-r--r-- | pkgs/development/tools/rust/cargo-spellcheck/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/tools/rust/cargo-spellcheck/default.nix b/pkgs/development/tools/rust/cargo-spellcheck/default.nix index 23de1bc2a0708..f6312ee3f00dd 100644 --- a/pkgs/development/tools/rust/cargo-spellcheck/default.nix +++ b/pkgs/development/tools/rust/cargo-spellcheck/default.nix @@ -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 ]; |