Skip to content

Commit

Permalink
git-warp-time: fetchCargoTarball -> fetchCargoVendor
Browse files Browse the repository at this point in the history
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.

The dontConfigure line can be removed in staging, as it's the default
there.
  • Loading branch information
alyssais committed Jan 31, 2025
1 parent 0481dd8 commit 823bb08
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkgs/by-name/gi/git-warp-time/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-Xh30nA77cJ7+UfKlIslnyD+93AtnQ+8P3sCFsG0DAUk=";
};

cargoDeps = rustPlatform.fetchCargoTarball {
cargoDeps = rustPlatform.fetchCargoVendor {
inherit (finalAttrs) pname version src;
dontConfigure = true;
nativeBuildInputs = [ zstd ];
hash = "sha256-bmClqtH1xU2KOKVbCOrgN14jpLKiA2ZMzWwrOiufwnQ=";
hash = "sha256-QaS63yVjNdWPUkh1sJz4dPXCVy/dSOdxpaf5rV2KVp4=";
};

nativeBuildInputs = [
Expand Down

0 comments on commit 823bb08

Please sign in to comment.