summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2008-01-10 04:43:46 +0000
committerMichael Raskin <7c6f434c@mail.ru>2008-01-10 04:43:46 +0000
commitca74bacd18e6f503ecb39df6d5bc6df773060d61 (patch)
tree693ec2cd1a07b3b0107e102faad1bf7ea2033038
parent7f402451ec239edc10467d663624982faa755b60 (diff)
downloadnixpkgs-ca74bacd18e6f503ecb39df6d5bc6df773060d61.tar
nixpkgs-ca74bacd18e6f503ecb39df6d5bc6df773060d61.tar.gz
nixpkgs-ca74bacd18e6f503ecb39df6d5bc6df773060d61.tar.bz2
nixpkgs-ca74bacd18e6f503ecb39df6d5bc6df773060d61.tar.lz
nixpkgs-ca74bacd18e6f503ecb39df6d5bc6df773060d61.tar.xz
nixpkgs-ca74bacd18e6f503ecb39df6d5bc6df773060d61.tar.zst
nixpkgs-ca74bacd18e6f503ecb39df6d5bc6df773060d61.zip
Added MadWiFi.
svn path=/nixpkgs/trunk/; revision=10107
-rw-r--r--pkgs/os-specific/linux/atheros/0.9.3.3.nix22
-rw-r--r--pkgs/top-level/all-packages.nix9
2 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/atheros/0.9.3.3.nix b/pkgs/os-specific/linux/atheros/0.9.3.3.nix
new file mode 100644
index 00000000000..f9d6af2d838
--- /dev/null
+++ b/pkgs/os-specific/linux/atheros/0.9.3.3.nix
@@ -0,0 +1,22 @@
+args : with args;
+	with builderDefs {
+		src = /* put a fetchurl here */
+	fetchurl {
+		url = http://downloads.sourceforge.net/madwifi/madwifi-0.9.3.3.tar.bz2;
+		sha256 = "1dq56dx81wfhpgipbrl3gk2is3g1xvysx2pl6vxyj0dhslkcnf3y";
+	};
+
+		buildInputs = [];
+		configureFlags = [];
+		makeFlags = [''KERNELPATH=${kernel}/lib/modules/*/build'' ''DESTDIR=$out''];
+	} null; /* null is a terminator for sumArgs */
+stdenv.mkDerivation rec {
+	name = "atheros-"+version;
+	builder = writeScript (name + "-builder")
+		(textClosure [doMakeInstall doForceShare doPropagate]);
+	meta = {
+		description = "
+		Atheros WiFi driver.
+";
+	};
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 830a8b78507..8657c36bb1b 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -2992,6 +2992,15 @@ rec {
     inherit fetchurl stdenv;
   };
 
+  atherosFun = lib.sumArgs (selectVersion ../os-specific/linux/atheros) {
+    inherit fetchurl stdenv builderDefs;
+  };
+
+  atherosFunCurrent = theKernel: (atherosFun {
+    version = "0.9.3.3";
+    kernel = theKernel;
+  } null);
+
   bridge_utils = import ../os-specific/linux/bridge_utils {
     inherit fetchurl stdenv autoconf automake;
   };