summary refs log tree commit diff
path: root/pkgs/os-specific/linux/hostapd/default.nix
diff options
context:
space:
mode:
authorEvgeny Egorochkin <phreedom.stdin@gmail.com>2011-06-19 23:30:57 +0000
committerEvgeny Egorochkin <phreedom.stdin@gmail.com>2011-06-19 23:30:57 +0000
commite873eebeb68b18b35ae653143508163a58a8aa1a (patch)
treecdeb4a3fc7caab4c7496136403d0c82954479897 /pkgs/os-specific/linux/hostapd/default.nix
parent6074d7f112d164ed9f091f7a7be26b05434d2a92 (diff)
downloadnixpkgs-e873eebeb68b18b35ae653143508163a58a8aa1a.tar
nixpkgs-e873eebeb68b18b35ae653143508163a58a8aa1a.tar.gz
nixpkgs-e873eebeb68b18b35ae653143508163a58a8aa1a.tar.bz2
nixpkgs-e873eebeb68b18b35ae653143508163a58a8aa1a.tar.lz
nixpkgs-e873eebeb68b18b35ae653143508163a58a8aa1a.tar.xz
nixpkgs-e873eebeb68b18b35ae653143508163a58a8aa1a.tar.zst
nixpkgs-e873eebeb68b18b35ae653143508163a58a8aa1a.zip
hostapd: packaged.
svn path=/nixpkgs/trunk/; revision=27501
Diffstat (limited to 'pkgs/os-specific/linux/hostapd/default.nix')
-rw-r--r--pkgs/os-specific/linux/hostapd/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/hostapd/default.nix b/pkgs/os-specific/linux/hostapd/default.nix
new file mode 100644
index 00000000000..39f92d99b7f
--- /dev/null
+++ b/pkgs/os-specific/linux/hostapd/default.nix
@@ -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;
+  };
+}
\ No newline at end of file