75ca762b89
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
33 lines
962 B
Nix
33 lines
962 B
Nix
{ lib, stdenv, fetchurl, libpcap, openssl, zlib, wirelesstools
|
|
, iw, ethtool, pciutils, libnl, pkg-config, makeWrapper
|
|
, autoreconfHook, usbutils }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "aircrack-ng-1.6";
|
|
|
|
src = fetchurl {
|
|
url = "https://download.aircrack-ng.org/${name}.tar.gz";
|
|
sha256 = "0ix2k64qg7x3w0bzdsbk1m50kcpq1ws59g3zkwiafvpwdr4gs2sg";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config makeWrapper autoreconfHook ];
|
|
buildInputs = [ libpcap openssl zlib libnl iw ethtool pciutils ];
|
|
|
|
patchPhase = ''
|
|
sed -e 's@/usr/local/bin@'${wirelesstools}@ -i lib/osdep/linux.c
|
|
'';
|
|
|
|
postFixup = ''
|
|
wrapProgram $out/bin/airmon-ng --prefix PATH : ${lib.makeBinPath [
|
|
ethtool iw pciutils usbutils
|
|
]}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Wireless encryption cracking tools";
|
|
homepage = "http://www.aircrack-ng.org/";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|