3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/aircrack-ng/default.nix
R. RyanTM 7840cb30f8 aircrack-ng: 1.4 -> 1.5.2
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/aircrack-ng/versions
2018-12-16 15:30:15 +00:00

34 lines
986 B
Nix

{ stdenv, fetchurl, libpcap, openssl, zlib, wirelesstools
, 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";
};
nativeBuildInputs = [ pkgconfig makeWrapper autoreconfHook ];
buildInputs = [ libpcap openssl zlib libnl iw ethtool pciutils ];
patchPhase = ''
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
]}
'';
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;
};
}