2008-06-03 09:41:52 +02:00
|
|
|
args : with args;
|
2008-11-04 22:24:10 +01:00
|
|
|
let localDefs = builderDefs.passthru.function {
|
2008-06-03 09:41:52 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = http://snapshots.madwifi.org/madwifi-trunk/madwifi-trunk-r3693-20080602.tar.gz;
|
|
|
|
sha256 = "0r9nnxcq50rgwcm9y93rpk3mqknl3ixkxkd72437b55qlz1f9vs3";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [];
|
|
|
|
configureFlags = [];
|
|
|
|
makeFlags = [''KERNELPATH=${kernel}/lib/modules/*/build'' ''DESTDIR=$out''];
|
|
|
|
hal20080528 = fetchurl {
|
|
|
|
url = http://people.freebsd.org/~sam/ath_hal-20080528.tgz;
|
|
|
|
sha256 = "1a6glkd8n46876hl48ib08p81qwsvrk4153j4b9xrxgid6f8bar9";
|
|
|
|
};
|
2008-08-19 07:54:09 +02:00
|
|
|
};
|
2008-06-03 09:41:52 +02:00
|
|
|
in with localDefs;
|
|
|
|
let
|
2009-05-20 01:25:58 +02:00
|
|
|
preBuild = fullDepEntry (''
|
2008-06-03 09:41:52 +02:00
|
|
|
echo Replacing HAL.
|
|
|
|
tar xvf ${hal20080528}
|
|
|
|
rm -r hal
|
|
|
|
mv ath_hal-* hal
|
|
|
|
'') ["minInit" "doUnpack"];
|
2009-05-20 01:25:58 +02:00
|
|
|
postInstall = fullDepEntry (''
|
2008-06-03 09:41:52 +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
|
|
|
|
((lib.optional
|
2009-05-24 12:57:41 +02:00
|
|
|
(lib.attrByPath ["freshHAL"] false args)
|
2008-06-03 09:41:52 +02:00
|
|
|
preBuild)
|
|
|
|
++ [doMakeInstall postInstall
|
|
|
|
doForceShare doPropagate]));
|
|
|
|
meta = {
|
2009-03-03 14:27:40 +01:00
|
|
|
description = "Atheros WiFi driver";
|
2008-06-03 09:41:52 +02:00
|
|
|
inherit src;
|
|
|
|
};
|
|
|
|
}
|