2025-08-16 19:38:35 +08:00

38 lines
856 B
Nix

{
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";
};
})