about summary refs log tree commit diff
path: root/pkgs/tools/networking
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2021-05-26 09:10:29 +0200
committerGitHub <noreply@github.com>2021-05-26 09:10:29 +0200
commit533cee92cc127ffd9ed94f12ff368cc7877daf2a (patch)
treea52a407fc9fb00707153ab79d56facc34dcf4cfe /pkgs/tools/networking
parent8cebe042706a5b700791176e7d92e95d62287a8e (diff)
parent3325e2dfc65df761057ea7a3bf398e3fdb835128 (diff)
downloadnixlib-533cee92cc127ffd9ed94f12ff368cc7877daf2a.tar
nixlib-533cee92cc127ffd9ed94f12ff368cc7877daf2a.tar.gz
nixlib-533cee92cc127ffd9ed94f12ff368cc7877daf2a.tar.bz2
nixlib-533cee92cc127ffd9ed94f12ff368cc7877daf2a.tar.lz
nixlib-533cee92cc127ffd9ed94f12ff368cc7877daf2a.tar.xz
nixlib-533cee92cc127ffd9ed94f12ff368cc7877daf2a.tar.zst
nixlib-533cee92cc127ffd9ed94f12ff368cc7877daf2a.zip
Merge pull request #124354 from fortuneteller2k/mdk3
mdk4: init at unstable-2021-04-27
Diffstat (limited to 'pkgs/tools/networking')
-rw-r--r--pkgs/tools/networking/mdk4/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/tools/networking/mdk4/default.nix b/pkgs/tools/networking/mdk4/default.nix
new file mode 100644
index 000000000000..903504633ac8
--- /dev/null
+++ b/pkgs/tools/networking/mdk4/default.nix
@@ -0,0 +1,33 @@
+{ lib, stdenv, fetchFromGitHub, libnl, libpcap, pkg-config }:
+
+stdenv.mkDerivation {
+  pname = "mdk4";
+  version = "unstable-2021-04-27";
+
+  src = fetchFromGitHub {
+    owner = "aircrack-ng";
+    repo = "mdk4";
+    rev = "e94422ce8e4b8dcd132d658345814df7e63bfa41";
+    sha256 = "sha256-pZS7HQBKlSZJGqoZlSyBUzXC3osswcB56cBzgm+Sbwg=";
+  };
+
+  preBuild = ''
+    mkdir -p $out/bin
+    mkdir -p $out/share/man
+
+    substituteInPlace src/Makefile --replace '/usr/local/src/mdk4' '$out'
+  '';
+
+  nativeBuildInputs = [ pkg-config ];
+
+  buildInputs = [ libnl libpcap ];
+
+  makeFlags = [ "PREFIX=$(out)" "SBINDIR=$(PREFIX)/bin" ];
+
+  meta = with lib; {
+    description = "A tool that injects data into wireless networks";
+    homepage = "https://github.com/aircrack-ng/mdk4";
+    maintainers = with maintainers; [ fortuneteller2k ];
+    license = licenses.gpl2Plus;
+  };
+}