2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2021-01-03 02:26:17 +01:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nix-update-script
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-wipe";
|
2021-01-18 06:55:51 +01:00
|
|
|
version = "0.3.1";
|
2021-01-03 02:26:17 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mihai-dinculescu";
|
|
|
|
repo = "cargo-wipe";
|
|
|
|
rev = "v${version}";
|
2021-01-18 06:55:51 +01:00
|
|
|
sha256 = "sha256-sVekfGHg2wspP5/zJzXTXupspwJr4hQBucY5+8iUjUQ=";
|
2021-01-03 02:26:17 +01:00
|
|
|
};
|
|
|
|
|
2021-05-07 13:00:49 +02:00
|
|
|
cargoSha256 = "sha256-EoXgsWg1Rh7C+fIqvefkLdck4Yj3kox2ZAU3kn6nH8Q=";
|
2021-01-03 02:26:17 +01:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script {
|
|
|
|
attrPath = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2021-01-03 02:26:17 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|