summary refs log tree commit diff
path: root/pkgs/os-specific/linux/atheros/r3574.nix
blob: c16fc1285ec071c1e9183ff9b69bf354eda2de8a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
args : with args;
	let localDefs = builderDefs {
		src = /* put a fetchurl here */
		  fetchurl {
		    url = http://snapshots.madwifi.org/madwifi-trunk/madwifi-trunk-r3574-20080426.tar.gz;
		    sha256 = "1awr8jxrh6nvrsnyaydafkz7yarax3h4xphjcx6gmwsfbyb2mj7q";
		  };

		buildInputs = [];
		configureFlags = [];
		makeFlags = [''KERNELPATH=${kernel}/lib/modules/*/build'' ''DESTDIR=$out''];
	} null; /* null is a terminator for sumArgs */
	in with localDefs;
let
postInstall = FullDepEntry (''
	ln -s $out/usr/local/bin $out/bin
'') [minInit doMakeInstall];
in
stdenv.mkDerivation rec {
	name = "atheros-"+version;
	builder = writeScript (name + "-builder")
		(textClosure localDefs [doMakeInstall postInstall
			doForceShare doPropagate]);
	meta = {
		description = "Atheros WiFi driver";
		inherit src;
	};
}