linux-3.1.nix: Set modDirVersion

broadcom-sta: use kernel.modDirVersion in place of kernel.version

svn path=/nixpkgs/trunk/; revision=28406
This commit is contained in:
Shea Levy 2011-08-08 20:49:59 +00:00
parent ffdc37215a
commit 532511e7f5
2 changed files with 4 additions and 2 deletions

View file

@ -20,7 +20,7 @@ stdenv.mkDerivation {
(! builtins.lessThan (builtins.compareVersions kernel.version "2.6.37") 0)
[ ./mutex-sema.patch ];
makeFlags = "KDIR=${kernel}/lib/modules/${kernel.version}/build";
makeFlags = "KDIR=${kernel}/lib/modules/${kernel.modDirVersion}/build";
unpackPhase =
''
@ -31,7 +31,7 @@ stdenv.mkDerivation {
installPhase =
''
binDir="$out/lib/modules/${kernel.version}/kernel/net/wireless/"
binDir="$out/lib/modules/${kernel.modDirVersion}/kernel/net/wireless/"
docDir="$out/share/doc/broadcom-sta/"
ensureDir "$binDir" "$docDir"
cp wl.ko "$binDir"

View file

@ -193,6 +193,8 @@ import ./generic.nix (
rec {
version = "3.1-rc1";
modDirVersion = "3.1.0-rc1";
src = fetchurl {
url = "mirror://kernel/linux/kernel/v3.x/testing/linux-${version}.tar.bz2";