From 40d3099157256f6fa0933ccfd00ca8d4f0f82a38 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Tue, 28 Jan 2025 12:47:50 +0100 Subject: [PATCH] trunk-ng: 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. --- pkgs/by-name/tr/trunk-ng/package.nix | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/tr/trunk-ng/package.nix b/pkgs/by-name/tr/trunk-ng/package.nix index 8c914af48f3e..47959e4eddbf 100644 --- a/pkgs/by-name/tr/trunk-ng/package.nix +++ b/pkgs/by-name/tr/trunk-ng/package.nix @@ -37,13 +37,8 @@ rustPlatform.buildRustPackage rec { # requires network checkFlags = [ "--skip=tools::tests::download_and_install_binaries" ]; - cargoHash = - { - darwin = "sha256-TwpGw3LH3TmZSbC4DkoOYpQdOpksXXoAoiacyZAefTU="; - linux = "sha256-AivISmT/r8xa/vSXUN8sU7z67t1hcyMQM+t6oXmIOhU="; - } - .${stdenv.hostPlatform.parsed.kernel.name} - or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); + useFetchCargoVendor = true; + cargoHash = "sha256-jDewjDm7Nh09CkRdPG0/ELn4odz/aaRNg8GegDxK6f8="; meta = with lib; { homepage = "https://github.com/ctron/trunk";