1 { stdenv, fetchurl, libnl1, openssl }:
2 stdenv.mkDerivation rec {
4 name = "hostapd-${version}";
8 url = http://w1.fi/releases/hostapd-0.7.3.tar.gz;
9 sha256 = "0rqmjs4k50qjp2d0k71lg5vsh34w07w985cxjqklq6kyyf0jgsri";
12 buildInputs = [ libnl1 openssl ];
16 substituteInPlace defconfig --replace "#CONFIG_DRIVER_NL80211" "CONFIG_DRIVER_NL80211"
17 substituteInPlace Makefile --replace "/usr/local/bin/" "$out/bin/"
20 preInstall = "mkdir -p $out/bin";
22 meta = with stdenv.lib; {
23 homepage = http://w1.fi/hostapd/;
24 description = "A user space daemon for access point and authentication servers";
25 license = licenses.gpl2;
26 maintainers = [ maintainers.phreedom ];
27 platforms = platforms.linux;