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

26 lines
781 B
Nix
Raw Normal View History

2014-06-01 15:40:14 +02:00
{ stdenv, fetchurl, libpcap, openssl, zlib, wirelesstools, libnl, pkgconfig }:
stdenv.mkDerivation rec {
2016-01-14 02:46:23 +01:00
name = "aircrack-ng-1.2-rc3";
src = fetchurl {
url = "http://download.aircrack-ng.org/${name}.tar.gz";
2016-01-14 02:46:23 +01:00
sha256 = "11a53acln0fpar6v75qlybzdg8hdwc9ssd06fxygr47yp755qncf";
};
2014-06-01 15:40:14 +02:00
buildInputs = [ libpcap openssl zlib libnl pkgconfig ];
patchPhase = ''
sed -e 's@^prefix.*@prefix = '$out@ -i common.mak
sed -e 's@/usr/local/bin@'${wirelesstools}@ -i src/osdep/linux.c
'';
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; [ iElectric viric garbas chaoflow nckx ];
2013-06-03 00:31:33 +02:00
platforms = platforms.linux;
};
}