Permalink
Browse files

broadcom-sta: Use kernel.dev instead of kernelDev

Signed-off-by: Shea Levy <shea@shealevy.com>
  • Loading branch information...
shlevy committed Mar 25, 2013
1 parent 99c0cb0 commit 9a4724d0db3ae440b596f8183308bd05cd9aedf8
Showing with 4 additions and 5 deletions.
  1. +4 −5 pkgs/os-specific/linux/broadcom-sta/default.nix
@@ -1,12 +1,12 @@
-{ stdenv, fetchurl, kernelDev }:
+{ stdenv, fetchurl, kernel }:
let version = "5_100_82_112";
bits = if stdenv.system == "i686-linux" then "32" else
assert stdenv.system == "x86_64-linux"; "64";
in
stdenv.mkDerivation {
- name = "broadcom-sta-${version}-${kernelDev.version}";
+ name = "broadcom-sta-${version}-${kernel.version}";
src = fetchurl {
url = "http://www.broadcom.com/docs/linux_sta/hybrid-portsrc_x86_${bits}-v${version}.tar.gz";
@@ -15,13 +15,12 @@ stdenv.mkDerivation {
else "1qsarnry10f5m8a73wbr9cg2ifs00sqg6x0ay59l72vl9hb2zlww";
};
- buildInputs = [ kernelDev ];
patches =
[ ./makefile.patch ./linux-2.6.39.patch ./linux-3.2.patch
./linux-3.4.patch ./license.patch
];
- makeFlags = "KDIR=${kernelDev}/lib/modules/${kernelDev.modDirVersion}/build";
+ makeFlags = "KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build";
unpackPhase =
''
@@ -32,7 +31,7 @@ stdenv.mkDerivation {
installPhase =
''
- binDir="$out/lib/modules/${kernelDev.modDirVersion}/kernel/net/wireless/"
+ binDir="$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/"
docDir="$out/share/doc/broadcom-sta/"
mkdir -p "$binDir" "$docDir"
cp wl.ko "$binDir"

0 comments on commit 9a4724d

Please sign in to comment.