2012-09-07 13:04:47 +00:00
|
|
|
{ stdenv, fetchurl, libnl, openssl, pkgconfig }:
|
2011-06-19 23:30:57 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "hostapd-${version}";
|
2013-09-16 21:06:51 +00:00
|
|
|
version = "2.0";
|
2011-06-19 23:30:57 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-09-16 21:06:51 +00:00
|
|
|
url = "http://hostap.epitest.fi/releases/${name}.tar.gz";
|
|
|
|
sha256 = "262ce394b930bccc3d65fb99ee380f28d36444978f524c845a98e8e29f4e9d35";
|
2011-06-19 23:30:57 +00:00
|
|
|
};
|
|
|
|
|
2012-09-07 13:04:47 +00:00
|
|
|
buildInputs = [ libnl openssl pkgconfig ];
|
2011-06-19 23:30:57 +00:00
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
cd hostapd
|
2012-09-07 13:04:47 +00:00
|
|
|
substituteInPlace Makefile --replace "/usr/local/bin" "$out/bin"
|
2011-06-19 23:30:57 +00:00
|
|
|
mv defconfig .config
|
2012-09-07 13:04:47 +00:00
|
|
|
echo CONFIG_LIBNL32=y | tee -a .config
|
2013-03-11 09:31:51 +00:00
|
|
|
echo CONFIG_IEEE80211N=y | tee -a .config
|
2012-09-07 13:04:47 +00:00
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags libnl-3.0)"
|
2011-06-19 23:30:57 +00:00
|
|
|
'';
|
|
|
|
preInstall = "mkdir -p $out/bin";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2013-09-16 21:06:51 +00:00
|
|
|
homepage = http://hostap.epitest.fi;
|
2011-06-19 23:30:57 +00:00
|
|
|
description = "A user space daemon for access point and authentication servers";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.phreedom ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2013-03-11 09:31:51 +00:00
|
|
|
}
|