2008-04-24 18:00:28 +01:00
|
|
|
args : with args;
|
2008-11-04 21:24:10 +00:00
|
|
|
let localDefs = builderDefs.passthru.function {
|
2008-04-24 18:00:28 +01:00
|
|
|
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''];
|
2008-08-19 06:54:09 +01:00
|
|
|
};
|
2008-04-24 18:00:28 +01:00
|
|
|
in with localDefs;
|
|
|
|
let
|
2009-05-20 00:25:58 +01:00
|
|
|
postInstall = fullDepEntry (''
|
2008-04-24 18:00:28 +01:00
|
|
|
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 = {
|
2009-03-03 13:27:40 +00:00
|
|
|
description = "Atheros WiFi driver";
|
2008-04-24 18:00:28 +01:00
|
|
|
inherit src;
|
|
|
|
};
|
|
|
|
}
|