85f96822a0
Rust 1.50.0 incorporated a Cargo change (rust-lang/cargo#8937) in which cargo vendor erroneously changed permissions of vendored crates. This was fixed in Rust 1.51.0 (rust-lang/cargo#9131). Unfortunately, this means that all cargoSha256/cargoHashes produced during the Rust 1.50.0 cycle are potentially broken. This change updates cargoSha256/cargoHash tree-wide. Fixes #121994.
29 lines
916 B
Nix
29 lines
916 B
Nix
{ lib, fetchFromGitHub, rustPlatform, runCommand }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-binutils";
|
|
version = "0.3.3";
|
|
|
|
# Upstream doesn't commit `Cargo.lock`, see https://github.com/rust-embedded/cargo-binutils/pull/99
|
|
src = let
|
|
repo = fetchFromGitHub {
|
|
owner = "rust-embedded";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-Dgn+f4aSsDSh+RC8yvt3ydkdtwib5jEVsnZkod5c7Vo=";
|
|
};
|
|
in runCommand "source" { } ''
|
|
cp -R ${repo} $out
|
|
chmod -R +w $out
|
|
cp ${./Cargo.lock} $out/Cargo.lock
|
|
'';
|
|
|
|
cargoSha256 = "sha256-6du86HxkDQAeIXScXBKuv0j4YZiG4O6IwVIXZnJgTO8=";
|
|
|
|
meta = with lib; {
|
|
description = "Cargo subcommands to invoke the LLVM tools shipped with the Rust toolchain";
|
|
homepage = "https://github.com/rust-embedded/cargo-binutils";
|
|
license = with licenses; [ asl20 mit ];
|
|
maintainers = with maintainers; [ stupremee ];
|
|
};
|
|
}
|