2008-01-10 04:43:46 +00:00
|
|
|
args : with args;
|
2008-01-18 12:36:56 +00:00
|
|
|
let localDefs = builderDefs {
|
2008-01-10 04:43:46 +00:00
|
|
|
src = /* put a fetchurl here */
|
2008-01-10 08:01:48 +00:00
|
|
|
fetchurl {
|
|
|
|
url = http://downloads.sourceforge.net/madwifi/madwifi-0.9.3.3.tar.bz2;
|
|
|
|
sha256 = "1dq56dx81wfhpgipbrl3gk2is3g1xvysx2pl6vxyj0dhslkcnf3y";
|
|
|
|
};
|
2008-01-10 04:43:46 +00:00
|
|
|
|
|
|
|
buildInputs = [];
|
|
|
|
configureFlags = [];
|
|
|
|
makeFlags = [''KERNELPATH=${kernel}/lib/modules/*/build'' ''DESTDIR=$out''];
|
2008-01-11 06:38:31 +00:00
|
|
|
patchAR2425x86 = ""; /*(if args ? pci001c_rev01 && args.pci001c_rev01 then
|
2008-01-10 08:01:48 +00:00
|
|
|
fetchurl {
|
|
|
|
url = http://madwifi.org/attachment/ticket/1679/madwifi-ng-0933.ar2425.20071130.i386.patch?format=raw;
|
|
|
|
name = "madwifi-AR2425-x86.patch";
|
|
|
|
sha256 = "11xpx5g9w7ilagvj60prc3s8a3x0n5n4mr0b7nh0lxwrbjdgjjfg";
|
2008-01-11 06:38:31 +00:00
|
|
|
} else "")*/;
|
2008-01-10 04:43:46 +00:00
|
|
|
} null; /* null is a terminator for sumArgs */
|
2008-01-18 12:36:56 +00:00
|
|
|
in with localDefs;
|
2008-01-10 08:01:48 +00:00
|
|
|
let
|
2009-05-20 00:25:58 +01:00
|
|
|
doPatch = fullDepEntry (if patchAR2425x86 !="" then ''
|
2008-01-10 08:01:48 +00:00
|
|
|
cd hal
|
|
|
|
patch -Np1 -i ${patchAR2425x86}
|
|
|
|
'' else "") [minInit doUnpack];
|
2009-05-20 00:25:58 +01:00
|
|
|
postInstall = fullDepEntry (''
|
2008-03-02 11:04:51 +00:00
|
|
|
ln -s $out/usr/local/bin $out/bin
|
|
|
|
'') [minInit doMakeInstall];
|
2008-01-10 08:01:48 +00:00
|
|
|
in
|
2008-01-10 04:43:46 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "atheros-"+version;
|
|
|
|
builder = writeScript (name + "-builder")
|
2008-03-02 11:04:51 +00:00
|
|
|
(textClosure localDefs [doPatch doMakeInstall
|
|
|
|
postInstall doForceShare doPropagate]);
|
2008-01-10 04:43:46 +00:00
|
|
|
meta = {
|
2009-03-03 13:27:40 +00:00
|
|
|
description = "Atheros WiFi driver";
|
2008-03-02 18:49:31 +00:00
|
|
|
inherit src;
|
2008-01-10 04:43:46 +00:00
|
|
|
};
|
|
|
|
}
|