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 {
|
|
|
|
name = "wpa_supplicant-0.6.9";
|
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";
|
|
|
|
sha256 = "0w7mf3nyilkjsn5v7p15v5fxnh0klgm8c979z80y0mkw7zx88lkf";
|
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
|
|
|
|
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
|
|
|
}
|