2009-05-12 20:52:48 +02:00
|
|
|
{stdenv, fetchurl, openssl, qt4 ? null}:
|
2007-04-08 22:20:21 +02:00
|
|
|
|
2009-04-04 02:21:21 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2009-12-16 20:45:00 +01:00
|
|
|
name = "wpa_supplicant-0.7.0";
|
2007-04-08 22:20:21 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-04-04 02:21:21 +02:00
|
|
|
url = "http://hostap.epitest.fi/releases/${name}.tar.gz";
|
2009-12-16 20:45:00 +01:00
|
|
|
sha256 = "08aynxk842vg4if28ydza3mwkx2nvk9gw2vkbdlfn88vi1wgcd4x";
|
2007-04-08 22:20:21 +02:00
|
|
|
};
|
|
|
|
|
2009-04-04 02:21:21 +02:00
|
|
|
preBuild = ''
|
2008-04-21 10:32:30 +02:00
|
|
|
cd wpa_supplicant
|
2007-04-08 22:20:21 +02:00
|
|
|
cp defconfig .config
|
2009-12-16 20:45:00 +01:00
|
|
|
echo CONFIG_DEBUG_SYSLOG=y >> .config
|
2007-04-08 22:20:21 +02:00
|
|
|
substituteInPlace Makefile --replace /usr/local $out
|
2009-05-12 20:52:48 +02:00
|
|
|
makeFlagsArray=(ALL="wpa_supplicant wpa_passphrase wpa_cli ${if qt4 == null then "" else "wpa_gui-qt4"}")
|
2009-04-04 02:21:21 +02:00
|
|
|
'';
|
2007-04-08 22:20:21 +02:00
|
|
|
|
2009-05-12 20:52:48 +02:00
|
|
|
buildInputs = [openssl qt4];
|
2009-04-04 02:21:21 +02:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
ensureDir $out/share/man/man5 $out/share/man/man8
|
|
|
|
cp doc/docbook/*.5 $out/share/man/man5/
|
|
|
|
cp doc/docbook/*.8 $out/share/man/man8/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://hostap.epitest.fi/wpa_supplicant/;
|
|
|
|
description = "A tool for connecting to WPA and WPA2-protected wireless networks";
|
|
|
|
};
|
2007-04-08 22:20:21 +02:00
|
|
|
}
|