3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/aircrack-ng/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
993 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, libpcap, openssl, zlib, wirelesstools
2021-01-17 03:51:22 +00:00
, iw, ethtool, pciutils, libnl, pkg-config, makeWrapper
, autoreconfHook, usbutils }:
stdenv.mkDerivation rec {
pname = "aircrack-ng";
version = "1.6";
src = fetchurl {
url = "https://download.aircrack-ng.org/aircrack-ng-${version}.tar.gz";
2020-03-15 21:09:39 +00:00
sha256 = "0ix2k64qg7x3w0bzdsbk1m50kcpq1ws59g3zkwiafvpwdr4gs2sg";
};
2021-01-17 03:51:22 +00:00
nativeBuildInputs = [ pkg-config 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 = ''
2021-01-15 09:19:50 +00:00
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; [ ];
2013-06-02 23:31:33 +01:00
platforms = platforms.linux;
};
}