1 { lib, stdenv, fetchFromGitHub, libnl, libpcap, pkg-config }:
5 version = "unstable-2021-04-27";
7 src = fetchFromGitHub {
10 rev = "e94422ce8e4b8dcd132d658345814df7e63bfa41";
11 sha256 = "sha256-pZS7HQBKlSZJGqoZlSyBUzXC3osswcB56cBzgm+Sbwg=";
16 mkdir -p $out/share/man
18 substituteInPlace src/Makefile --replace '/usr/local/src/mdk4' '$out'
21 nativeBuildInputs = [ pkg-config ];
23 buildInputs = [ libnl libpcap ];
25 makeFlags = [ "PREFIX=$(out)" "SBINDIR=$(PREFIX)/bin" ];
28 description = "A tool that injects data into wireless networks";
29 homepage = "https://github.com/aircrack-ng/mdk4";
30 maintainers = with maintainers; [ fortuneteller2k ];
31 license = licenses.gpl2Plus;