From c382681b1bbf3e81528f8136f8ac1092c164e35d Mon Sep 17 00:00:00 2001 From: Mathijs Kwik Date: Mon, 15 Jul 2013 17:03:55 +0200 Subject: [PATCH] nvidia binary driver: patch for linux 3.10 --- pkgs/os-specific/linux/nvidia-x11/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/os-specific/linux/nvidia-x11/default.nix b/pkgs/os-specific/linux/nvidia-x11/default.nix index b5d8abab241..c7fc5c44c22 100644 --- a/pkgs/os-specific/linux/nvidia-x11/default.nix +++ b/pkgs/os-specific/linux/nvidia-x11/default.nix @@ -8,14 +8,18 @@ with stdenv.lib; -let versionNumber = "319.32"; in +let versionNumber = "319.32"; + kernel310patch = fetchurl { + url = "https://projects.archlinux.org/svntogit/packages.git/plain/trunk/nvidia-linux-3.10.patch?h=packages/nvidia"; + sha256 = "0nhzg6jdk9sf1vzj519gqi8a2n9xydhz2bcz472pss2cfgbc1ahb"; + }; -stdenv.mkDerivation { +in stdenv.mkDerivation { name = "nvidia-x11-${versionNumber}${optionalString (!libsOnly) "-${kernelDev.version}"}"; builder = ./builder.sh; - patches = [ ./version-test.patch ]; + patches = [ ./version-test.patch kernel310patch ]; src = if stdenv.system == "i686-linux" then