netwatch: init at 0.25.4

Assissted-by: ChatGPT 5.5
This commit is contained in:
Tomas Rivera
2026-05-31 11:59:59 +02:00
committed by Tomás Rivera
parent 7fc393d1b4
commit 7e6e6d9b49
+44
View File
@@ -0,0 +1,44 @@
{
fetchFromGitHub,
lib,
libpcap,
nix-update-script,
pkg-config,
rustPlatform,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "netwatch-tui";
version = "0.25.4";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "matthart1983";
repo = "netwatch";
tag = "v${finalAttrs.version}";
hash = "sha256-rbQ9lTQJgy93Z2WojaTkU5z1fkJX4mUjsx2Or7FNrJc=";
};
cargoHash = "sha256-D06ywfwurtfI8NAfGS88YOoSVi4KfjEBgUA8EfLKamQ=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libpcap ];
doInstallCheck = true;
nativeCheckInputs = [ versionCheckHook ];
__darwinAllowLocalNetworking = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Real-time network diagnostics in your terminal.";
homepage = "https://github.com/matthart1983/netwatch";
changelog = "https://github.com/matthart1983/netwatch/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
mainProgram = "netwatch";
maintainers = with lib.maintainers; [ tomasrivera ];
};
})