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. 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 will take a long time. It might be possible to parallelize it using xargs' -P option. I haven't tested it.
33 lines
756 B
Nix
33 lines
756 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-pio";
|
|
version = "0.25.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "esp-rs";
|
|
repo = "embuild";
|
|
rev = "cargo-pio-v${version}";
|
|
hash = "sha256-YH2CPb3uBlPncd+KkP25xhCVvDB7HDxJuSqWOJ1LT3k=";
|
|
};
|
|
|
|
useFetchCargoVendor = true;
|
|
cargoHash = "sha256-/WBhgPyd5hR3DBYvV8pd7uZb6FeD3yiDe3wOKtyFRG8=";
|
|
|
|
buildAndTestSubdir = "cargo-pio";
|
|
|
|
meta = with lib; {
|
|
description = "Build Rust embedded projects with PlatformIO";
|
|
homepage = "https://github.com/esp-rs/embuild/tree/master/cargo-pio";
|
|
license = with lib.licenses; [
|
|
asl20
|
|
mit
|
|
];
|
|
maintainers = with maintainers; [ dannixon ];
|
|
mainProgram = "cargo-pio";
|
|
};
|
|
}
|