3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/aircrack-ng/default.nix
Lluís Batlle i Rossell 95f38fc409 Fixing the aircrack-ng build, so it doesn't depend on any profile
and points, as usual, only to the store for its dependencies.

svn path=/nixpkgs/trunk/; revision=13965
2009-02-02 21:57:18 +00:00

24 lines
623 B
Nix

{stdenv, fetchurl, libpcap, openssl, zlib, wirelesstools}:
stdenv.mkDerivation {
name = "aircrack-ng-1.0-rc2";
src = fetchurl {
url = http://download.aircrack-ng.org/aircrack-ng-1.0-rc2.tar.gz;
sha256 = "9d52f15f3fca52775ecb9cfc1f0aeb04c3c3bd3101665d5760d395f7d2a87d8b";
};
buildInputs = [libpcap openssl zlib];
patchPhase = ''
sed -e 's@^prefix.*@prefix = '$out@ -i common.mak
sed -e 's@/usr/local/bin@'${wirelesstools}@ -i src/osdep/linux.c
'';
meta = {
description = "Wireless encryption crackign tools";
homepage = http://www.aircrack-ng.org/;
license = "GPL2+";
};
}