Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
924 B
Nix
Raw Normal View History

2025-03-04 17:31:23 +01:00
{
lib,
fetchFromGitHub,
rustPlatform,
cargo,
makeWrapper,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "cargo-clean-recursive";
2025-05-03 20:30:56 +00:00
version = "1.1.1";
2025-03-04 17:31:23 +01:00
src = fetchFromGitHub {
owner = "IgaguriMK";
repo = "cargo-clean-recursive";
tag = "v${finalAttrs.version}";
2025-05-03 20:30:56 +00:00
sha256 = "sha256-9+FqRvd0s9N7mQwIf+f3+vBhaa0YQWUR0j0lv4CBOkM=";
2025-03-04 17:31:23 +01:00
};
2025-05-03 20:30:56 +00:00
cargoHash = "sha256-KIoRsCy/Cei1YM/94kUcgI2Twgi8kEFVNiUM+sCPMyo=";
2025-03-04 17:31:23 +01:00
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/cargo-clean-recursive \
--prefix PATH : ${lib.makeBinPath [ cargo ]}
'';
meta = {
description = "Cleans all projects under specified directory";
2025-03-04 17:31:23 +01:00
mainProgram = "cargo-clean-recursive";
homepage = "https://github.com/IgaguriMK/cargo-clean-recursive";
license = with lib.licenses; [
asl20 # or
mit
];
maintainers = with lib.maintainers; [ qubic ];
};
})