depot/third_party/nixpkgs/pkgs/development/tools/rust/cargo-sweep/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

28 lines
792 B
Nix

{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "cargo-sweep";
version = "0.7.0";
src = fetchFromGitHub {
owner = "holmgr";
repo = pname;
rev = "v${version}";
sha256 = "sha256-L9tWTgW8PIjxeby+wa71NPp3kWMYH5D7PNtpk8Bmeyc=";
};
cargoSha256 = "sha256-aalB7gHLc3YIgSOg68wc2fyzXFGfHO5x5YdzhuRmyro=";
checkFlags = [
# Requires a rustup toolchain to be installed.
"--skip check_toolchain_listing_on_multiple_projects"
];
meta = with lib; {
description = "Cargo subcommand for cleaning up unused build files generated by Cargo";
mainProgram = "cargo-sweep";
homepage = "https://github.com/holmgr/cargo-sweep";
license = licenses.mit;
maintainers = with maintainers; [ xrelkd matthiasbeyer ];
};
}