mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 15:41:40 +00:00
71f8e0911a
svn path=/nixpkgs/trunk/; revision=10913
31 lines
800 B
Nix
31 lines
800 B
Nix
args : with args;
|
|
let localDefs = builderDefs {
|
|
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 */
|
|
in with localDefs;
|
|
let
|
|
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 [doMakeInstall postInstall
|
|
doForceShare doPropagate]);
|
|
meta = {
|
|
description = "
|
|
Atheros WiFi driver.
|
|
";
|
|
inherit src;
|
|
};
|
|
}
|