Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
927 B
Nix
Raw Permalink Normal View History

2024-09-01 17:49:47 +02:00
{
buildGoModule,
fetchFromGitHub,
makeBinaryWrapper,
lib,
arp-scan,
}:
2025-03-29 11:13:23 +01:00
2024-09-01 17:49:47 +02:00
buildGoModule rec {
pname = "watchyourlan";
2025-07-26 18:40:17 +00:00
version = "2.1.3";
2024-09-01 17:49:47 +02:00
src = fetchFromGitHub {
owner = "aceberg";
repo = "WatchYourLAN";
2025-03-29 11:13:23 +01:00
tag = version;
2025-07-26 18:40:17 +00:00
hash = "sha256-TFqBuJHoHKJ/ftorgNG9JpiOrjSmqw+tHhaOYzoTeUM=";
2024-09-01 17:49:47 +02:00
};
2025-07-26 18:40:17 +00:00
vendorHash = "sha256-3HxpKahFa8keM9wbNJ3anEBMCoEphaj5rOhydajtnY0=";
2024-09-01 17:49:47 +02:00
ldflags = [
"-s"
"-w"
];
nativeBuildInputs = [ makeBinaryWrapper ];
postFixup = ''
wrapProgram $out/bin/WatchYourLAN \
--prefix PATH : '${lib.makeBinPath [ arp-scan ]}'
'';
meta = {
description = "Lightweight network IP scanner with web GUI";
homepage = "https://github.com/aceberg/WatchYourLAN";
2025-03-29 11:13:23 +01:00
changelog = "https://github.com/aceberg/WatchYourLAN/releases/tag/${src.tag}";
2024-09-01 17:49:47 +02:00
license = lib.licenses.mit;
mainProgram = "WatchYourLAN";
maintainers = [ lib.maintainers.iv-nn ];
};
}