polaris: useFetchCargoVendor

Cargo 1.84.0 seems to have changed the output format of cargo vendor
again, once again invalidating fetchCargoTarball FOD hashes.  It's
time to fix this once and for all, switching across the board to
fetchCargoVendor, which is not dependent on cargo vendor's output
format.

We've checked that fetchCargoVendor produces the same hash on
Darwin (with case-insensitive filesystem) and Linux.
This commit is contained in:
Alyssa Ross
2025-01-28 13:58:06 +01:00
parent a0f39e85a5
commit 6b80d2f004
+2 -3
View File
@@ -30,9 +30,8 @@ rustPlatform.buildRustPackage rec {
'';
};
cargoHash = if stdenv.buildPlatform.isDarwin
then "sha256-HTqsghjfSjwOaN/ApPFvWVEoquZzE3MYzULkhUOXIWI"
else "sha256-Z3AbYtdNAyKT5EuGtCktEg0fxs/gpKdsrttRkxZhLAU";
useFetchCargoVendor = true;
cargoHash = "sha256-bVXz/rSfkmdQlAa3B4zamZebpRBOkch6zNOFiyEQBbY=";
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
darwin.Security