Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
50 lines
943 B
Nix
50 lines
943 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
libnl,
|
|
libpcap,
|
|
pkg-config,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "mdk4";
|
|
version = "4.2-unstable-2024-08-16";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aircrack-ng";
|
|
repo = "mdk4";
|
|
rev = "36ca143a2e6c0b75b5ec60143b0c5eddd3d2970c";
|
|
hash = "sha256-iwESQgvt9gLQeDKVkf9KcztQmjdCLOE0+Q0FlfbbjEU=";
|
|
};
|
|
|
|
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"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
description = "Tool that injects data into wireless networks";
|
|
homepage = "https://github.com/aircrack-ng/mdk4";
|
|
maintainers = with lib.maintainers; [ moni ];
|
|
license = lib.licenses.gpl3Plus;
|
|
mainProgram = "mdk4";
|
|
};
|
|
}
|