treewide: migrate to fetchCargoVendor, batch 5

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.

These are a few cases that could have been in batch 1, but weren't for
whatever reason.  Maybe there were merge conflicts, or a transient
network failure.

It should be possible to reproduce this diff.  To do so, get the list
of files changed by this commit, e.g. with git diff --name-only, then
run the following two commands, each with that list of files as their
standard input:

	xargs sed -i 's/^\(. *\)\(cargoHash\)\b/\1useFetchCargoVendor = true;\n\1cargoHash/'
	cut -d / -f 4 | xargs -n 1 nix-update --version=skip
This commit is contained in:
Alyssa Ross 2025-01-24 21:51:27 +01:00
parent cace2b6eae
commit 745c9a5015
13 changed files with 26 additions and 13 deletions

View File

@ -66,7 +66,8 @@ rustPlatform.buildRustPackage {
hash = "sha256-MHwyXCAqdBzdJlYzSeUXr6bJdTVHcjJ/kGcuAsZCCW8=";
};
cargoHash = "sha256-mdII6CcSQkKZRWLiTJFCrhhkiqJJ5aTQ6vuf9uYGj/I=";
useFetchCargoVendor = true;
cargoHash = "sha256-TkeB939zV5VvqICFqJd/7uX+ydXyEQOJ3sYQbHbZhP0=";
buildInputs = [
fontconfig

View File

@ -17,7 +17,8 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-J+q7KeBthF9Wd08MNv0aHyLHgLUKg3mzQ8ic6+ashto=";
};
cargoHash = "sha256-iJ04WPViqtafINkjn3PD8cE55LVdJZQXodAl3KlxweA=";
useFetchCargoVendor = true;
cargoHash = "sha256-K4qAUEVdi7OqpKAxyEMnKkGTuxSjrdE+UQaYosnUo70=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];

View File

@ -13,7 +13,8 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-FAcKzLr835FxgcnWmAe1JirzlRc3fvxGXMKxnSmgCzA=";
};
cargoHash = "sha256-zWIXIoKgLVu7EZLe1IrR3Rl5szrN0zbyKJWK2BvD7kQ=";
useFetchCargoVendor = true;
cargoHash = "sha256-3M+UK0+lvnRH7j1vbqMgpE7mnz8YnPO3MEjQWnPRy8c=";
# some necessary files are absent in the crate version
doCheck = false;

View File

@ -17,7 +17,8 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-NB2GDDFH9IW/c0acMojYHuzPrx0J3tjlDqjQa6ZRbN4=";
};
cargoHash = "sha256-K6roydkLHvs+xg2LjrSHw8IcYEyOFcrsh4u6Fz7yYKQ=";
useFetchCargoVendor = true;
cargoHash = "sha256-i2CvwQXKKfYLdK0tKf/w4TepPyMo99v1I+kIr00PWcY=";
nativeBuildInputs = [ installShellFiles ];

View File

@ -27,7 +27,8 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-FSip1EY6DCgmIgpkhzEF6h3yV8tJqZKnBpqgBDg1TKQ=";
};
cargoHash = "sha256-35XKqVBXlK6iPHec1ALhymYCD1GG1ZnCU2ET3PRGidk=";
useFetchCargoVendor = true;
cargoHash = "sha256-uLGdrPTXAHwZrevGPgZGiNorxVNkYiHn6mPyxd8O8zw=";
postPatch = ''
# upstream uses lld on aarch64-darwin for faster builds

View File

@ -24,7 +24,8 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-XJ8RYfBduTK5CkvFjVRF6yGkgBdojuewFUrEvRcTJsA=";
};
cargoHash = "sha256-FUd2dtSwZEBJDCs5EbgrtHfO2oquZP/4wxhVreCaayg=";
useFetchCargoVendor = true;
cargoHash = "sha256-38RQsr7bYIf/6edIcDwjHtDEI2lnB3Mp+qaOu7Dh41A=";
nativeBuildInputs = [
cmake

View File

@ -16,7 +16,8 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-K5E1sarWIUl4QavHBoS8sPr5Cp8ZndWjLYDLm++d7v0=";
};
cargoHash = "sha256-TPF4usEIhgkGUJ16pxq0OhQoJJHLzeRXNQvbP8isWM4=";
useFetchCargoVendor = true;
cargoHash = "sha256-FDfsA87VATJ4CpXoJ0eFoFl5z9Jtv6tPjkCf7kz6g00=";
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [
Security

View File

@ -18,7 +18,8 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-4m8/sp6r2Xb2SsNcatMv0+mWHBx+XKD0LEzrEwuWIEA=";
};
cargoHash = "sha256-obuMixkXqWUuZFqs3mJyMpHx4RY70ZpE3H9GzqFmt6k=";
useFetchCargoVendor = true;
cargoHash = "sha256-uE3nS5XAn20iB7VQuYpFryIhQ7WMAEFGrD+KHJb1H5I=";
nativeBuildInputs = [
pkg-config

View File

@ -27,7 +27,8 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-4tcwEok36vuXbtlZNUkLNw1kHFQPBEJM/gWRhRWNLPg=";
};
cargoHash = "sha256-l01It6mUflENlADW6PpOQvK1o4qOjbTsMLB6n+OIl0U=";
useFetchCargoVendor = true;
cargoHash = "sha256-OgUWOtqgGCRNYCrdMa8IAfxbbYqv+1WwubvfYybuAQU=";
nativeBuildInputs = [
pkg-config

View File

@ -31,7 +31,8 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-ebLbdIF+BybK7ssNtZacGWmAEwdNZh8b94QYgvcwzmM=";
};
cargoHash = "sha256-230jJr2EQua9iI4jz+LxrTZn4TtVAsmPYB8JMLAylzc=";
useFetchCargoVendor = true;
cargoHash = "sha256-xDb4shDHCbd0yuTSAt80i1aqyuhpkfd/fYF98CfXdcM=";
nativeBuildInputs = [
installShellFiles

View File

@ -20,7 +20,8 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-m33tBLNOU2+vjIICU0ggnNxLvD/fxJVSxT6bRih9e7U=";
};
cargoHash = "sha256-d7CltWp1RfQ8cJ6eLXF8spaWXBBEtla46FiRrzG5EVg=";
useFetchCargoVendor = true;
cargoHash = "sha256-XPe5lQMKTGWlt9E3JSsCT1g7VTFBo/aYrVSf0VNOpVk=";
nativeBuildInputs = [
installShellFiles

View File

@ -44,7 +44,8 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-1yXyf/9St03B8mZPfw8GVUIFOX/nWbwwCs/8ON3uBDw=";
};
cargoHash = "sha256-iuLTqrYq3mXjZ1bUQvEwWUNOxdg21Yn5NWmiQTAtdIA=";
useFetchCargoVendor = true;
cargoHash = "sha256-FFNMI6mGYAqHPpdVo8iA2i8R2JNz8F5oQFXh7rk6wdI=";
nativeBuildInputs = [
cmake

View File

@ -16,7 +16,8 @@ rustPlatform.buildRustPackage rec {
hash = "sha256-3kRtBfIT6QcdZ1+h2WwvxsAv/UJLtwSodF5zvCUDbHQ=";
};
cargoHash = "sha256-A8bRimM8eHUM86HLzReo4WFzaz6P9hnKuyhg0h0db9I=";
useFetchCargoVendor = true;
cargoHash = "sha256-4kx3co9doFYD9SjJhL17hgf6ll4niKnF57evv/eNeM0=";
nativeBuildInputs = [ installShellFiles ];