watchyourlan: init at 2.0.4 (#338842)

This commit is contained in:
Aleksana 2024-10-29 17:11:01 +08:00 committed by GitHub
commit d10330934a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 46 additions and 0 deletions

View File

@ -9556,6 +9556,12 @@
githubId = 1318743;
name = "Ivar";
};
iv-nn = {
name = "iv-nn";
github = "iv-nn";
githubId = 49885246;
keys = [ { fingerprint = "6358 EF87 86E0 EF2F 1628 103F BAB5 F165 1C71 C9C3"; } ];
};
ivyfanchiang = {
email = "dev@ivyfanchiang.ca";
github = "hexadecimalDinosaur";

View File

@ -0,0 +1,40 @@
{
buildGoModule,
fetchFromGitHub,
makeBinaryWrapper,
lib,
arp-scan,
}:
buildGoModule rec {
pname = "watchyourlan";
version = "2.0.4";
src = fetchFromGitHub {
owner = "aceberg";
repo = "WatchYourLAN";
rev = version;
hash = "sha256-nJYDGCkT8vCkxySLONG3OkWVkaBqXqSFgd7N1TTMAf4=";
};
vendorHash = "sha256-urSFoFkYllV+bsKIRV/azkbL30mbGeciYR7jy/fOE/w=";
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";
license = lib.licenses.mit;
mainProgram = "WatchYourLAN";
maintainers = [ lib.maintainers.iv-nn ];
};
}