netwatch: init at 0.25.4 (#526280)
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user