install-nothing: init at 0.3.0

This commit is contained in:
Yiyu Zhou
2025-12-26 15:42:47 -08:00
parent af52396905
commit 2f33bee583
@@ -0,0 +1,35 @@
{
lib,
rustPlatform,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "install-nothing";
version = "0.3.0";
src = fetchFromGitHub {
owner = "buyukakyuz";
repo = "install-nothing";
tag = "v${finalAttrs.version}";
hash = "sha256-Raz6TJ7MqOi4bQE6nN7JJVCVlGZ9v7OZRfaeL+UMx2A=";
};
cargoHash = "sha256-jNjAzMrRUT3MdD7OMfCB0+dKRGPQsT9kBIweTOhJCOc=";
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
passthru.updateScript = nix-update-script { };
meta = {
description = "Terminal application that simulates installing things but doesn't actually install anything";
homepage = "https://github.com/buyukakyuz/install-nothing";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ yiyu ];
mainProgram = "install-nothing";
};
})