depot/third_party/nixpkgs/pkgs/development/tools/rust/cargo-wipe/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

31 lines
797 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, nix-update-script
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-wipe";
version = "0.3.3";
src = fetchFromGitHub {
owner = "mihai-dinculescu";
repo = "cargo-wipe";
rev = "v${version}";
sha256 = "sha256-xMYpZ6a8HdULblkfEqnqLjX8OVFJWx8MHDGNhuFzdTc=";
};
cargoHash = "sha256-/cne7uTGyxgTRONWMEE5dPbPDnCxf+ZnYzYXRAeHJyQ=";
passthru = {
updateScript = nix-update-script { };
};
meta = with lib; {
description = ''Cargo subcommand "wipe": recursively finds and optionally wipes all "target" or "node_modules" folders'';
mainProgram = "cargo-wipe";
homepage = "https://github.com/mihai-dinculescu/cargo-wipe";
license = with licenses; [ mit ];
maintainers = with maintainers; [ otavio ];
};
}