nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 39 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 libpcap, 6 libnet, 7 autoreconfHook, 8}: 9 10stdenv.mkDerivation rec { 11 pname = "netdiscover"; 12 version = "0.20"; 13 14 src = fetchFromGitHub { 15 owner = "netdiscover-scanner"; 16 repo = "netdiscover"; 17 tag = version; 18 hash = "sha256-I3t9GsgKFo/eJrqYzj8T2Epfi3SURicwRYPBK25uHEw="; 19 }; 20 21 nativeBuildInputs = [ autoreconfHook ]; 22 23 buildInputs = [ 24 libpcap 25 libnet 26 ]; 27 28 # Running update-oui-database.sh would probably make the build irreproducible 29 30 meta = with lib; { 31 description = "Network address discovering tool, developed mainly for those wireless networks without dhcp server, it also works on hub/switched networks"; 32 homepage = "https://github.com/netdiscover-scanner/netdiscover"; 33 changelog = "https://github.com/netdiscover-scanner/netdiscover/releases/tag/${src.tag}"; 34 license = licenses.gpl3Plus; 35 maintainers = with maintainers; [ vdot0x23 ]; 36 platforms = platforms.unix; 37 mainProgram = "netdiscover"; 38 }; 39}