1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00

hostapd: packaged.

svn path=/nixpkgs/trunk/; revision=27501
This commit is contained in:
Evgeny Egorochkin 2011-06-19 23:30:57 +00:00
parent 6074d7f112
commit e873eebeb6
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,29 @@
{ stdenv, fetchurl, libnl1, openssl }:
stdenv.mkDerivation rec {
name = "hostapd-${version}";
version = "0.7.3";
src = fetchurl {
url = http://w1.fi/releases/hostapd-0.7.3.tar.gz;
sha256 = "0rqmjs4k50qjp2d0k71lg5vsh34w07w985cxjqklq6kyyf0jgsri";
};
buildInputs = [ libnl1 openssl ];
configurePhase = ''
cd hostapd
substituteInPlace defconfig --replace "#CONFIG_DRIVER_NL80211" "CONFIG_DRIVER_NL80211"
substituteInPlace Makefile --replace "/usr/local/bin/" "$out/bin/"
mv defconfig .config
'';
preInstall = "mkdir -p $out/bin";
meta = with stdenv.lib; {
homepage = http://w1.fi/hostapd/;
description = "A user space daemon for access point and authentication servers";
license = licenses.gpl2;
maintainers = [ maintainers.phreedom ];
platforms = platforms.linux;
};
}

View file

@ -4928,6 +4928,8 @@ let
hibernate = callPackage ../os-specific/linux/hibernate { };
hostapd = callPackage ../os-specific/linux/hostapd { };
htop = callPackage ../os-specific/linux/htop { };
hurdCross = forceBuildDrv(import ../os-specific/gnu/hurd {