cargo-spellcheck: fix build with gcc15 (#475996)

This commit is contained in:
Michael Daniels
2026-01-04 19:03:17 +00:00
committed by GitHub
@@ -2,6 +2,7 @@
lib,
rustPlatform,
fetchFromGitHub,
stdenv,
}:
rustPlatform.buildRustPackage rec {
@@ -19,6 +20,8 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ rustPlatform.bindgenHook ];
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-std=gnu17";
preCheck = "HOME=$(mktemp -d)";
checkFlags = [