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

34 lines
977 B
Nix
Raw Normal View History

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