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