projclean: init at 0.8.0

This commit is contained in:
chillcicada 2025-08-16 15:23:14 +08:00
parent b6b47963d8
commit 02b7b8270f
No known key found for this signature in database
GPG Key ID: 34C212310A99754B

View File

@ -0,0 +1,37 @@
{
lib,
fetchFromGitHub,
rustPlatform,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "projclean";
version = "0.8.0";
src = fetchFromGitHub {
owner = "sigoden";
repo = "projclean";
tag = "v${finalAttrs.version}";
hash = "sha256-EScezOsfiirg8YbhteFxuVTodeup8tUzZdcrWveJxWE=";
};
cargoHash = "sha256-9atTgWg1iYCeXsRLLMOR87CbpIezD3ozMMOgumRNKAg=";
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Project dependencies & build artifacts cleanup tool";
homepage = "https://github.com/sigoden/projclean";
license = with lib.licenses; [
mit
asl20
];
maintainers = with lib.maintainers; [ chillcicada ];
mainProgram = "projclean";
};
})