garage: 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.
This commit is contained in:
Alyssa Ross 2025-01-30 15:44:32 +01:00
parent 278dd5eaa6
commit 3f4e1f908a

View File

@ -38,6 +38,7 @@ let
rm .cargo/config.toml || true
'';
useFetchCargoVendor = true;
inherit cargoHash cargoPatches;
nativeBuildInputs = [
@ -119,7 +120,7 @@ rec {
garage_0_8_7 = generic {
version = "0.8.7";
hash = "sha256-2QGbR6YvMQeMxN3n1MMJ5qfBcEJ5hjXARUOfEn+m4Jc=";
cargoHash = "sha256-1cGlJP/RRgxt3GGMN1c+7Y5lLHJyvHEnpLsR35R5FfI=";
cargoHash = "sha256-NmeAkm35Su4o5JEn75pZmxhVHh+VMwKwULKY0eCVlYo=";
cargoPatches = [ ./update-time-0.8.patch ];
broken = stdenv.hostPlatform.isDarwin;
};
@ -127,7 +128,7 @@ rec {
garage_0_9_4 = generic {
version = "0.9.4";
hash = "sha256-2ZaxenwaVGYYUjUJaGgnGpZNQprQV9+Jns2sXM6cowk=";
cargoHash = "sha256-1Hrip4R5dr31czOcFMGW4ZvVfVwvdd7LkwukwNpS3o4=";
cargoHash = "sha256-ittesFz1GUGipQecsmMA+GEaVoUY+C9DtEvsO0HFNCc=";
cargoPatches = [ ./update-time.patch ];
broken = stdenv.hostPlatform.isDarwin;
};
@ -135,7 +136,7 @@ rec {
garage_1_0_1 = generic {
version = "1.0.1";
hash = "sha256-f6N2asycN04I6U5XQ5LEAqYu/v5jYZiFCxZ8YQ32XyM=";
cargoHash = "sha256-jpc/vaygC5WNSkVA3P01mCRk9Nx/CUumE893tHWoe34=";
cargoHash = "sha256-DX20Uv4g8JO3PlRsTbvr8nF4g9aw1/hW0bfQm6zGBd4=";
broken = stdenv.hostPlatform.isDarwin;
};