3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/wpa_supplicant/default.nix
Sander van der Burg 2a633e75c8 Added qt4 gui front-end package for WPA supplicant
svn path=/nixpkgs/trunk/; revision=15578
2009-05-12 18:52:48 +00:00

31 lines
857 B
Nix

{stdenv, fetchurl, openssl, qt4 ? null}:
stdenv.mkDerivation rec {
name = "wpa_supplicant-0.6.9";
src = fetchurl {
url = "http://hostap.epitest.fi/releases/${name}.tar.gz";
sha256 = "0w7mf3nyilkjsn5v7p15v5fxnh0klgm8c979z80y0mkw7zx88lkf";
};
preBuild = ''
cd wpa_supplicant
cp defconfig .config
substituteInPlace Makefile --replace /usr/local $out
makeFlagsArray=(ALL="wpa_supplicant wpa_passphrase wpa_cli ${if qt4 == null then "" else "wpa_gui-qt4"}")
'';
buildInputs = [openssl qt4];
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";
};
}