Merge pull request #59767 from xrelkd/add/cargo-bloat

cargo-bloat: init at 0.6.2
This commit is contained in:
Mario Rodas 2019-04-18 09:06:44 -05:00 committed by GitHub
commit 986fd4c168
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,24 @@
{ stdenv, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "cargo-bloat";
version = "0.6.2";
src = fetchFromGitHub {
owner = "RazrFalcon";
repo = pname;
rev = "v${version}";
sha256 = "0wf86r1s9skv0m4gp66g388847309nw9z1h8gadfg2c5w5idh3fb";
};
cargoSha256 = "1mmfcvpwwi6fjb47fz1azrpdkg1x5p3qn5bx4p6dyjcs1fmpdbbq";
meta = with stdenv.lib; {
description = "A tool and Cargo subcommand that helps you find out what takes most of the space in your executable";
homepage = https://github.com/RazrFalcon/cargo-bloat;
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ xrelkd ];
};
}

View File

@ -7756,6 +7756,7 @@ in
cargo-asm = callPackage ../development/tools/rust/cargo-asm {
inherit (darwin.apple_sdk.frameworks) Security;
};
cargo-bloat = callPackage ../development/tools/rust/cargo-bloat { };
cargo-expand = callPackage ../development/tools/rust/cargo-expand { };
cargo-fuzz = callPackage ../development/tools/rust/cargo-fuzz { };
cargo-xbuild = callPackage ../development/tools/rust/cargo-xbuild { };