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

26 lines
819 B
Nix
Raw Normal View History

2014-06-01 13:40:14 +00:00
{ stdenv, fetchurl, libpcap, openssl, zlib, wirelesstools, libnl, pkgconfig }:
stdenv.mkDerivation rec {
2014-06-01 13:40:14 +00:00
name = "aircrack-ng-1.2-beta3";
src = fetchurl {
url = "http://download.aircrack-ng.org/${name}.tar.gz";
2014-06-01 13:40:14 +00:00
sha256 = "13g9xz9djjgfc2xi88vnx7zhgy751hqb3739y7znyihd6q9sw8id";
};
2014-06-01 13:40:14 +00: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 18:37:14 +00:00
meta = with stdenv.lib; {
description = "Wireless encryption crackign tools";
homepage = http://www.aircrack-ng.org/;
license = stdenv.lib.licenses.gpl2Plus;
2013-06-02 18:37:14 +00:00
maintainers = [ maintainers.iElectric maintainers.viric maintainers.garbas maintainers.chaoflow ];
2013-06-02 22:31:33 +00:00
platforms = platforms.linux;
};
}