2008-01-11 07:38:31 +01:00
|
|
|
args : with args;
|
2008-01-18 13:36:56 +01:00
|
|
|
let localDefs = builderDefs {
|
2008-01-11 07:38:31 +01:00
|
|
|
src = /* put a fetchurl here */
|
|
|
|
fetchurl {
|
|
|
|
url = http://snapshots.madwifi.org/madwifi-ng/madwifi-ng-r2756-20071018.tar.gz;
|
|
|
|
sha256 = "0mm1kx9pjvvla792rv7k48yhsa0fpzvd1717g9xzazjsz2mqwzyv";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [];
|
|
|
|
configureFlags = [];
|
|
|
|
makeFlags = [''KERNELPATH=${kernel}/lib/modules/*/build'' ''DESTDIR=$out''];
|
|
|
|
patchAR2425x86 = (if args ? pci001c_rev01 && args.pci001c_rev01 then
|
|
|
|
fetchurl {
|
|
|
|
url = http://madwifi.org/attachment/ticket/1679/madwifi-ng-0933.ar2425.20071130.i386.patch?format=raw;
|
|
|
|
name = "madwifi-AR2425-x86.patch";
|
|
|
|
sha256 = "11xpx5g9w7ilagvj60prc3s8a3x0n5n4mr0b7nh0lxwrbjdgjjfg";
|
|
|
|
} else "");
|
|
|
|
} null; /* null is a terminator for sumArgs */
|
2008-01-18 13:36:56 +01:00
|
|
|
in with localDefs;
|
2008-01-11 07:38:31 +01:00
|
|
|
let
|
|
|
|
doPatch = FullDepEntry (if patchAR2425x86 !="" then ''
|
|
|
|
cd hal
|
|
|
|
patch -Np1 -i ${patchAR2425x86}
|
|
|
|
cd ..
|
|
|
|
'' else "") [minInit doUnpack];
|
2008-03-02 12:04:51 +01:00
|
|
|
postInstall = FullDepEntry (''
|
|
|
|
ln -s $out/usr/local/bin $out/bin
|
|
|
|
'') [minInit doMakeInstall];
|
2008-01-11 07:38:31 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "atheros-"+version;
|
|
|
|
builder = writeScript (name + "-builder")
|
2008-03-02 12:04:51 +01:00
|
|
|
(textClosure localDefs [doPatch doMakeInstall
|
|
|
|
postInstall doForceShare doPropagate]);
|
2008-01-11 07:38:31 +01:00
|
|
|
meta = {
|
|
|
|
description = "
|
|
|
|
Atheros WiFi driver.
|
|
|
|
";
|
2008-03-02 19:49:31 +01:00
|
|
|
inherit src;
|
2008-01-11 07:38:31 +01:00
|
|
|
};
|
|
|
|
}
|