2008-01-11 06:38:31 +00:00
|
|
|
args : with args;
|
2008-01-18 12:36:56 +00:00
|
|
|
let localDefs = builderDefs {
|
2008-01-11 06:38:31 +00: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 12:36:56 +00:00
|
|
|
in with localDefs;
|
2008-03-02 11:04:51 +00:00
|
|
|
let
|
|
|
|
postInstall = FullDepEntry (''
|
|
|
|
ln -s $out/usr/local/bin $out/bin
|
|
|
|
'') [minInit doMakeInstall];
|
|
|
|
in
|
2008-01-11 06:38:31 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "atheros-"+version;
|
|
|
|
builder = writeScript (name + "-builder")
|
2008-03-02 11:04:51 +00:00
|
|
|
(textClosure localDefs [doMakeInstall postInstall
|
|
|
|
doForceShare doPropagate]);
|
2008-01-11 06:38:31 +00:00
|
|
|
meta = {
|
|
|
|
description = "
|
|
|
|
Atheros WiFi driver.
|
|
|
|
";
|
2008-03-02 18:49:31 +00:00
|
|
|
inherit src;
|
2008-01-11 06:38:31 +00:00
|
|
|
};
|
|
|
|
}
|