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

34 lines
1,006 B
Nix
Raw Normal View History

{ stdenv, fetchurl, libpcap, openssl, zlib, wirelesstools
, iw, ethtool, pciutils, libnl, pkgconfig, makeWrapper }:
stdenv.mkDerivation rec {
2017-02-02 03:03:22 +01:00
name = "aircrack-ng-1.2-rc4";
src = fetchurl {
url = "http://download.aircrack-ng.org/${name}.tar.gz";
2017-02-02 03:03:22 +01:00
sha256 = "0dpzx9kddxpgzmgvdpl3rxn0jdaqhm5wxxndp1xd7d75mmmc2fnr";
};
nativeBuildInputs = [ pkgconfig makeWrapper ];
buildInputs = [ libpcap openssl zlib libnl iw ethtool pciutils ];
patchPhase = ''
sed -e 's@^prefix.*@prefix = '$out@ -i common.mak
sed -e 's@/usr/local/bin@'${wirelesstools}@ -i src/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 viric garbas chaoflow ];
2013-06-03 00:31:33 +02:00
platforms = platforms.linux;
};
}