cargo-binutils: format with nixpkgs-fmt

This commit is contained in:
happysalada 2021-05-09 20:36:20 +09:00 committed by Raphael Megzari
parent a4b05310c2
commit c8156c2386

View File

@ -5,13 +5,14 @@ rustPlatform.buildRustPackage rec {
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=";
};
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