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

28 lines
639 B
Nix
Raw Normal View History

{stdenv, fetchsvn, libpcap, openssl, zlib, wirelesstools}:
let
2013-03-29 19:02:51 +01:00
rev = "2268";
in
stdenv.mkDerivation rec {
name = "aircrack-ng-1.1-${rev}";
src = fetchsvn {
url = "http://trac.aircrack-ng.org/svn/trunk";
inherit rev;
2013-03-29 19:02:51 +01:00
sha256 = "0zjkk3s65v9w92fhzhyknhjcsx6whcm0an0qcawn2ggs0n0ss9ij";
};
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+";
};
}