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-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 13:36:56 +01:00
|
|
|
in with localDefs;
|
2008-03-02 12:04:51 +01:00
|
|
|
let
|
|
|
|
postInstall = FullDepEntry (''
|
|
|
|
ln -s $out/usr/local/bin $out/bin
|
|
|
|
'') [minInit doMakeInstall];
|
|
|
|
in
|
2008-01-11 07:38:31 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "atheros-"+version;
|
|
|
|
builder = writeScript (name + "-builder")
|
2008-03-02 12:04:51 +01:00
|
|
|
(textClosure localDefs [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
|
|
|
};
|
|
|
|
}
|