nvidia-x11: don't patch things if libsOnly requested

This commit is contained in:
Kosyrev Serge 2017-03-19 05:27:17 +03:00
parent 0f4d515834
commit d18f55269c

View file

@ -43,7 +43,7 @@ let
else throw "nvidia-x11 does not support platform ${stdenv.system}";
# patch to get the nvidia and nvidiaBeta driver to compile on kernel 4.10
patches = if versionOlder version "375"
patches = if libsOnly || versionOlder version "375"
then null
else [ (fetchurl {
url = https://git.archlinux.org/svntogit/packages.git/plain/trunk/kernel_4.10.patch?h=packages/nvidia; sha256 = "0zhpx3baq2pca2pmz1af5cp2nzjxjx0j9w5xrdy204mnv3v2708z";