summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2021-11-21 20:05:40 +0100
committerGitHub <noreply@github.com>2021-11-21 20:05:40 +0100
commitfdd6f7cc531722705141120dff6bc024e55d435c (patch)
treef8a361f1fd97ba49b22830525bbf1bff1146da83 /pkgs/tools
parentc9fde80d80e6b2d4f437305b91f20cce51d65332 (diff)
parent4aea8b21ed879c79e79503d32bc688d67d5d6710 (diff)
downloadnixpkgs-fdd6f7cc531722705141120dff6bc024e55d435c.tar
nixpkgs-fdd6f7cc531722705141120dff6bc024e55d435c.tar.gz
nixpkgs-fdd6f7cc531722705141120dff6bc024e55d435c.tar.bz2
nixpkgs-fdd6f7cc531722705141120dff6bc024e55d435c.tar.lz
nixpkgs-fdd6f7cc531722705141120dff6bc024e55d435c.tar.xz
nixpkgs-fdd6f7cc531722705141120dff6bc024e55d435c.tar.zst
nixpkgs-fdd6f7cc531722705141120dff6bc024e55d435c.zip
Merge pull request #145184 from vdot0x23/submit/netdiscover-init
netdiscover: init at 0.8.1
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/networking/netdiscover/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/tools/networking/netdiscover/default.nix b/pkgs/tools/networking/netdiscover/default.nix
new file mode 100644
index 00000000000..1a7b93eef8a
--- /dev/null
+++ b/pkgs/tools/networking/netdiscover/default.nix
@@ -0,0 +1,26 @@
+{ lib, stdenv, fetchFromGitHub, libpcap, libnet, autoreconfHook }:
+
+stdenv.mkDerivation rec {
+  pname = "netdiscover";
+  version = "0.8.1";
+
+  src = fetchFromGitHub {
+    owner = "netdiscover-scanner";
+    repo = pname;
+    rev = version;
+    sha256 = "13fp9rfr9vh756m5wck76zbcr0296ir52dahzlqdr52ha9vrswbb";
+  };
+
+  nativeBuildInputs = [ autoreconfHook ];
+  buildInputs = [ libpcap libnet ];
+
+  # Running update-oui-database.sh would probably make the build irreproducible
+
+  meta = with lib; {
+    description = "A network address discovering tool, developed mainly for those wireless networks without dhcp server, it also works on hub/switched networks";
+    homepage = "https://github.com/netdiscover-scanner/netdiscover";
+    license = licenses.gpl3Plus;
+    maintainers = with maintainers; [ vdot0x23 ];
+    platforms = platforms.unix;
+  };
+}