diskwatch: init at 0.1.1 (#526507)

This commit is contained in:
Fabian Affolter
2026-06-01 06:24:45 +00:00
committed by GitHub
+37
View File
@@ -0,0 +1,37 @@
{
lib,
rustPlatform,
fetchFromGitHub,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "diskwatch";
version = "0.1.1";
src = fetchFromGitHub {
owner = "matthart1983";
repo = "diskwatch";
tag = "v${finalAttrs.version}";
hash = "sha256-pveHyT3ljQQ9GdOMhZhcY7QD/pMvL3fLrbM6D5fO+h4=";
};
__structuredAttrs = true;
cargoHash = "sha256-PufgQqJGsPMBcnNV/QXQnE/wrI4FAJWXLvoHEqLQm5k=";
nativeCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
versionCheckProgramArg = [ "-V" ];
meta = {
description = "Single-host, read-only disk diagnostics TUI";
homepage = "https://github.com/matthart1983/diskwatch";
changelog = "https://github.com/matthart1983/diskwatch/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "diskwatch";
};
})