nixpkgs/pkgs/tools/networking/mdk4/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

35 lines
876 B
Nix

{ 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 = "Tool that injects data into wireless networks";
homepage = "https://github.com/aircrack-ng/mdk4";
maintainers = with maintainers; [ moni ];
license = licenses.gpl2Plus;
mainProgram = "mdk4";
};
}