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