2007-04-08 21:20:21 +01:00
|
|
|
{stdenv, fetchurl, openssl}:
|
|
|
|
|
2009-04-04 01:21:21 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "wpa_supplicant-0.6.9";
|
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";
|
|
|
|
sha256 = "0w7mf3nyilkjsn5v7p15v5fxnh0klgm8c979z80y0mkw7zx88lkf";
|
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
|
|
|
|
substituteInPlace Makefile --replace /usr/local $out
|
2009-04-04 01:21:21 +01:00
|
|
|
makeFlagsArray=(ALL="wpa_supplicant wpa_passphrase wpa_cli")
|
|
|
|
'';
|
2007-04-08 21:20:21 +01:00
|
|
|
|
|
|
|
buildInputs = [openssl];
|
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
|
|
|
}
|