forked from mirrors/nixpkgs
nvidia driver: fix eval with older kernels (e.g. 3.10)
This commit is contained in:
parent
3250375f20
commit
180e5ca0db
|
@ -8,6 +8,8 @@
|
|||
|
||||
with stdenv.lib;
|
||||
|
||||
assert (!libsOnly) -> kernel != null;
|
||||
|
||||
let
|
||||
|
||||
versionNumber = "331.38";
|
||||
|
@ -19,7 +21,7 @@ stdenv.mkDerivation {
|
|||
|
||||
builder = ./builder.sh;
|
||||
|
||||
patches = optional (versionAtLeast kernel.version "3.13") ./kernel-3.13.patch ;
|
||||
patches = optional (kernel ? version && versionAtLeast kernel.version "3.13") ./kernel-3.13.patch ;
|
||||
|
||||
src =
|
||||
if stdenv.system == "i686-linux" then
|
||||
|
|
Loading…
Reference in a new issue