nixpkgs/pkgs/tools/networking/aircrack-ng/default.nix

34 lines
980 B
Nix
Raw Normal View History

{ stdenv, fetchurl, libpcap, openssl, zlib, wirelesstools
2018-05-16 13:02:01 +00:00
, iw, ethtool, pciutils, libnl, pkgconfig, makeWrapper
, autoreconfHook, usbutils }:
stdenv.mkDerivation rec {
2020-03-15 21:09:39 +00:00
name = "aircrack-ng-1.6";
src = fetchurl {
url = "https://download.aircrack-ng.org/${name}.tar.gz";
2020-03-15 21:09:39 +00:00
sha256 = "0ix2k64qg7x3w0bzdsbk1m50kcpq1ws59g3zkwiafvpwdr4gs2sg";
};
2018-05-16 13:02:01 +00:00
nativeBuildInputs = [ pkgconfig makeWrapper autoreconfHook ];
buildInputs = [ libpcap openssl zlib libnl iw ethtool pciutils ];
patchPhase = ''
2020-03-15 21:09:39 +00:00
sed -e 's@/usr/local/bin@'${wirelesstools}@ -i lib/osdep/linux.c
'';
postFixup = ''
wrapProgram $out/bin/airmon-ng --prefix PATH : ${stdenv.lib.makeBinPath [
ethtool iw pciutils usbutils
]}
'';
2013-06-02 18:37:14 +00:00
meta = with stdenv.lib; {
description = "Wireless encryption cracking tools";
homepage = "http://www.aircrack-ng.org/";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ domenkozar ];
2013-06-02 22:31:33 +00:00
platforms = platforms.linux;
};
}