2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2021-01-03 01:26:17 +00:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nix-update-script
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-wipe";
|
2022-08-23 08:01:29 +00:00
|
|
|
version = "0.3.3";
|
2021-01-03 01:26:17 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mihai-dinculescu";
|
|
|
|
repo = "cargo-wipe";
|
|
|
|
rev = "v${version}";
|
2022-08-23 08:01:29 +00:00
|
|
|
sha256 = "sha256-xMYpZ6a8HdULblkfEqnqLjX8OVFJWx8MHDGNhuFzdTc=";
|
2021-01-03 01:26:17 +00:00
|
|
|
};
|
|
|
|
|
2022-08-23 08:01:29 +00:00
|
|
|
cargoSha256 = "sha256-/cne7uTGyxgTRONWMEE5dPbPDnCxf+ZnYzYXRAeHJyQ=";
|
2021-01-03 01:26:17 +00:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script {
|
|
|
|
attrPath = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-01-03 01:26:17 +00:00
|
|
|
description = ''Cargo subcommand "wipe": recursively finds and optionally wipes all "target" or "node_modules" folders'';
|
|
|
|
homepage = "https://github.com/mihai-dinculescu/cargo-wipe";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ otavio ];
|
|
|
|
};
|
|
|
|
}
|