nvidia driver: fix eval with older kernels (e.g. 3.10)

This commit is contained in:
Vladimír Čunát 2014-02-16 09:53:15 +01:00
parent 3250375f20
commit 180e5ca0db

View file

@ -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