3
0
Fork 0
forked from mirrors/nixpkgs

Added updated Atheros and fresh HAL version

svn path=/nixpkgs/trunk/; revision=11953
This commit is contained in:
Michael Raskin 2008-06-03 07:41:52 +00:00
parent 0d0b6afd53
commit b534077ffe
2 changed files with 44 additions and 1 deletions

View file

@ -0,0 +1,43 @@
args : with args;
let localDefs = builderDefs {
src = fetchurl {
url = http://snapshots.madwifi.org/madwifi-trunk/madwifi-trunk-r3693-20080602.tar.gz;
sha256 = "0r9nnxcq50rgwcm9y93rpk3mqknl3ixkxkd72437b55qlz1f9vs3";
};
buildInputs = [];
configureFlags = [];
makeFlags = [''KERNELPATH=${kernel}/lib/modules/*/build'' ''DESTDIR=$out''];
hal20080528 = fetchurl {
url = http://people.freebsd.org/~sam/ath_hal-20080528.tgz;
sha256 = "1a6glkd8n46876hl48ib08p81qwsvrk4153j4b9xrxgid6f8bar9";
};
} null; /* null is a terminator for sumArgs */
in with localDefs;
let
preBuild = FullDepEntry (''
echo Replacing HAL.
tar xvf ${hal20080528}
rm -r hal
mv ath_hal-* hal
'') ["minInit" "doUnpack"];
postInstall = FullDepEntry (''
ln -s $out/usr/local/bin $out/bin
'') [minInit doMakeInstall];
in
stdenv.mkDerivation rec {
name = "atheros-"+version;
builder = writeScript (name + "-builder")
(textClosure localDefs
((lib.optional
(lib.getAttr ["freshHAL"] false args)
preBuild)
++ [doMakeInstall postInstall
doForceShare doPropagate]));
meta = {
description = "
Atheros WiFi driver.
";
inherit src;
};
}

View file

@ -4830,7 +4830,7 @@ let pkgs = rec {
};
atheros = composedArgsAndFun (selectVersion ../os-specific/linux/atheros "0.9.4") {
inherit fetchurl stdenv builderDefs kernel;
inherit fetchurl stdenv builderDefs kernel lib;
} null;
nvidiaDrivers = import ../os-specific/linux/nvidia {