summary refs log tree commit diff
path: root/pkgs/os-specific/linux/atheros/0.9.4.nix
blob: c2d39072750d924a16dcd74f6d4cc1d90c82099e (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.passthru.function {
		src = /* put a fetchurl here */
		fetchurl {
		  url = http://downloads.sourceforge.net/madwifi/madwifi-0.9.4.tar.gz;
		  sha256 = "06jd5b8rfw7rmiva6jgmrb7n26g5plcg9marbnnmg68gbcqbr3xh";
		};

		buildInputs = [];
		configureFlags = [];
		makeFlags = [''KERNELPATH=${kernel}/lib/modules/*/build'' ''DESTDIR=$out''];
	};
	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;
	};
}