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
This commit is contained in:
Lluís Batlle i Rossell
2009-02-02 21:57:18 +00:00
parent db6973610c
commit 95f38fc409
3 changed files with 8 additions and 28 deletions
@@ -1,4 +1,4 @@
{stdenv, fetchurl, libpcap, openssl, zlib}:
{stdenv, fetchurl, libpcap, openssl, zlib, wirelesstools}:
stdenv.mkDerivation {
name = "aircrack-ng-1.0-rc2";
@@ -10,9 +10,10 @@ stdenv.mkDerivation {
buildInputs = [libpcap openssl zlib];
patches = [ ./add-paths.patch ];
postPatch = "sed -e 's@^prefix.*@prefix = '$out@ -i common.mak";
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";