1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/networking/aircrack-ng/default.nix

34 lines
984 B
Nix
Raw Normal View History

{ stdenv, fetchurl, libpcap, openssl, zlib, wirelesstools
2018-05-16 14:02:01 +01:00
, iw, ethtool, pciutils, libnl, pkgconfig, makeWrapper
, autoreconfHook }:
stdenv.mkDerivation rec {
2018-10-25 13:08:28 +01:00
name = "aircrack-ng-1.4";
src = fetchurl {
url = "https://download.aircrack-ng.org/${name}.tar.gz";
2018-10-25 13:08:28 +01:00
sha256 = "0fz1g6sd7dkfgcxrfrnqbygpx8d4ziyidm9wjb0ws9xgyy52l2cn";
};
2018-05-16 14:02:01 +01:00
nativeBuildInputs = [ pkgconfig makeWrapper autoreconfHook ];
buildInputs = [ libpcap openssl zlib libnl iw ethtool pciutils ];
patchPhase = ''
2018-10-25 13:08:28 +01: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 19:37:14 +01:00
meta = with stdenv.lib; {
description = "Wireless encryption cracking tools";
homepage = http://www.aircrack-ng.org/;
license = licenses.gpl2Plus;
maintainers = with maintainers; [ domenkozar garbas chaoflow ];
2013-06-02 23:31:33 +01:00
platforms = platforms.linux;
};
}