mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 15:11:35 +00:00
66d7126255
Since years I'm not maintaining anything of the list below other than some updates when I needed them for some reason. Other people is doing that maintenance on my behalf so I better take me out but for very few packages. Finally!
34 lines
975 B
Nix
34 lines
975 B
Nix
{ stdenv, fetchurl, libpcap, openssl, zlib, wirelesstools
|
|
, iw, ethtool, pciutils, libnl, pkgconfig, makeWrapper
|
|
, autoreconfHook }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "aircrack-ng-1.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://download.aircrack-ng.org/${name}.tar.gz";
|
|
sha256 = "0z7sl1ihgrnc98bpqa1mmkh51w26fnsanvj6ydwcnd8g83azwkvr";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig makeWrapper autoreconfHook ];
|
|
buildInputs = [ libpcap openssl zlib libnl iw ethtool pciutils ];
|
|
|
|
patchPhase = ''
|
|
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
|
|
]}
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Wireless encryption cracking tools";
|
|
homepage = http://www.aircrack-ng.org/;
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ domenkozar garbas chaoflow ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|