mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
watchyourlan: init at 2.0.4 (#338842)
This commit is contained in:
commit
d10330934a
@ -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";
|
||||
|
40
pkgs/by-name/wa/watchyourlan/package.nix
Normal file
40
pkgs/by-name/wa/watchyourlan/package.nix
Normal 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 ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user