Get broadcom-sta to work on kernels >= 2.6.37

Patch from http://forums.linuxmint.com/viewtopic.php?f=141&t=57056&start=20#p378103

svn path=/nixpkgs/trunk/; revision=26806
This commit is contained in:
Shea Levy
2011-04-12 15:54:39 +00:00
parent ce249b627b
commit 564edafa1a
2 changed files with 16 additions and 1 deletions
@@ -15,7 +15,10 @@ stdenv.mkDerivation {
};
buildInputs = [ kernel ];
patches = [ ./makefile.patch ];
patches = [ ./makefile.patch ]
++ stdenv.lib.optional
(! builtins.lessThan (builtins.compareVersions kernel.version "2.6.37") 0)
[ ./mutex-sema.patch ];
makeFlags = "KDIR=${kernel}/lib/modules/${kernel.version}/build";