diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2008-11-02 15:57:37 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2008-11-02 15:57:37 +0000 |
commit | b51888880a8c5f9165dfc01604b488dabfc75a34 (patch) | |
tree | dac9c8380fb97c326b58f30533b7048ea2d144e5 /pkgs/os-specific/linux/atheros | |
parent | 7dc297637fd6639807f88e2aca9f136a634a4788 (diff) | |
download | nixlib-b51888880a8c5f9165dfc01604b488dabfc75a34.tar nixlib-b51888880a8c5f9165dfc01604b488dabfc75a34.tar.gz nixlib-b51888880a8c5f9165dfc01604b488dabfc75a34.tar.bz2 nixlib-b51888880a8c5f9165dfc01604b488dabfc75a34.tar.lz nixlib-b51888880a8c5f9165dfc01604b488dabfc75a34.tar.xz nixlib-b51888880a8c5f9165dfc01604b488dabfc75a34.tar.zst nixlib-b51888880a8c5f9165dfc01604b488dabfc75a34.zip |
One more Atheros snapshot
svn path=/nixpkgs/trunk/; revision=13174
Diffstat (limited to 'pkgs/os-specific/linux/atheros')
-rw-r--r-- | pkgs/os-specific/linux/atheros/r3867.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/atheros/r3867.nix b/pkgs/os-specific/linux/atheros/r3867.nix new file mode 100644 index 000000000000..ee2c57c8bc0a --- /dev/null +++ b/pkgs/os-specific/linux/atheros/r3867.nix @@ -0,0 +1,47 @@ +args : with args; + let localDefs = builderDefs.meta.function { + src = fetchurl { + url = http://snapshots.madwifi.org/madwifi-trunk/madwifi-trunk-r3867-20080924.tar.gz; + sha256 = "0m48p5mqx1d3aimjjiy251fii7x7y15ch5n74hvq4hygc6bcjf79"; + }; + + buildInputs = []; + configureFlags = []; + makeFlags = [''KERNELPATH=${kernel}/lib/modules/*/build'' ''DESTDIR=$out'']; + hal20080528 = fetchurl { + url = http://people.freebsd.org/~sam/ath_hal-20080528.tgz; + sha256 = "1a6glkd8n46876hl48ib08p81qwsvrk4153j4b9xrxgid6f8bar9"; + }; + injectionPatchFile = ./inj.patch; + }; + 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; + patches = lib.optional + (lib.getAttr ["injectionPatch"] false args) + injectionPatchFile; + builder = writeScript (name + "-builder") + (textClosure localDefs + ((lib.optional + (lib.getAttr ["freshHAL"] false args) + preBuild) + ++ [doPatch doMakeInstall postInstall + doForceShare doPropagate])); + meta = { + description = " + Atheros WiFi driver. +"; + inherit src; + }; +} |