2008-01-11 09:38:31 +03:00
|
|
|
args : with args;
|
2008-01-18 15:36:56 +03:00
|
|
|
let localDefs = builderDefs {
|
2008-01-11 09:38:31 +03:00
|
|
|
src = /* put a fetchurl here */
|
|
|
|
fetchurl {
|
|
|
|
url = http://snapshots.madwifi.org/madwifi-ng/madwifi-ng-r3122-20080109.tar.gz;
|
|
|
|
sha256 = "188258c6q96n8lb57c0cqsvxp47psninirdax13w4yd07v1rymwd";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [];
|
|
|
|
configureFlags = [];
|
|
|
|
makeFlags = [''KERNELPATH=${kernel}/lib/modules/*/build'' ''DESTDIR=$out''];
|
|
|
|
} null; /* null is a terminator for sumArgs */
|
2008-01-18 15:36:56 +03:00
|
|
|
in with localDefs;
|
2008-03-02 14:04:51 +03:00
|
|
|
let
|
|
|
|
postInstall = FullDepEntry (''
|
|
|
|
ln -s $out/usr/local/bin $out/bin
|
|
|
|
'') [minInit doMakeInstall];
|
|
|
|
in
|
2008-01-11 09:38:31 +03:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "atheros-"+version;
|
|
|
|
builder = writeScript (name + "-builder")
|
2008-03-02 14:04:51 +03:00
|
|
|
(textClosure localDefs [doMakeInstall postInstall
|
|
|
|
doForceShare doPropagate]);
|
2008-01-11 09:38:31 +03:00
|
|
|
meta = {
|
|
|
|
description = "
|
|
|
|
Atheros WiFi driver.
|
|
|
|
";
|
2008-03-02 21:49:31 +03:00
|
|
|
inherit src;
|
2008-01-11 09:38:31 +03:00
|
|
|
};
|
|
|
|
}
|