2009-05-12 19:52:48 +01:00
|
|
|
{stdenv, fetchurl, openssl, qt4 ? null}:
|
2007-04-08 21:20:21 +01:00
|
|
|
|
2009-04-04 01:21:21 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2009-12-16 19:45:00 +00:00
|
|
|
name = "wpa_supplicant-0.7.0";
|
2007-04-08 21:20:21 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-04-04 01:21:21 +01:00
|
|
|
url = "http://hostap.epitest.fi/releases/${name}.tar.gz";
|
2009-12-16 19:45:00 +00:00
|
|
|
sha256 = "08aynxk842vg4if28ydza3mwkx2nvk9gw2vkbdlfn88vi1wgcd4x";
|
2007-04-08 21:20:21 +01:00
|
|
|
};
|
|
|
|
|
2009-04-04 01:21:21 +01:00
|
|
|
preBuild = ''
|
2008-04-21 09:32:30 +01:00
|
|
|
cd wpa_supplicant
|
2007-04-08 21:20:21 +01:00
|
|
|
cp defconfig .config
|
2009-12-16 19:45:00 +00:00
|
|
|
echo CONFIG_DEBUG_SYSLOG=y >> .config
|
2007-04-08 21:20:21 +01:00
|
|
|
substituteInPlace Makefile --replace /usr/local $out
|
2009-05-12 19:52:48 +01:00
|
|
|
makeFlagsArray=(ALL="wpa_supplicant wpa_passphrase wpa_cli ${if qt4 == null then "" else "wpa_gui-qt4"}")
|
2009-04-04 01:21:21 +01:00
|
|
|
'';
|
2007-04-08 21:20:21 +01:00
|
|
|
|
2009-05-12 19:52:48 +01:00
|
|
|
buildInputs = [openssl qt4];
|
2009-04-04 01:21:21 +01: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 21:20:21 +01:00
|
|
|
}
|