summary refs log tree commit diff
path: root/pkgs/os-specific/linux/nvidia-x11/builder.sh
diff options
context:
space:
mode:
authorSvein Ove Aas <sveina@gmail.com>2016-01-09 19:01:51 +0000
committerVladimír Čunát <vcunat@gmail.com>2016-01-14 12:32:53 +0100
commit805d453bc227bd03afffa2feb8ac3accb46700e7 (patch)
treea6deddf5f004620b1466e33ee7e75f0a100b0824 /pkgs/os-specific/linux/nvidia-x11/builder.sh
parenta81b396a2ef082f51eb7fb63ca24353c289682d8 (diff)
downloadnixpkgs-805d453bc227bd03afffa2feb8ac3accb46700e7.tar
nixpkgs-805d453bc227bd03afffa2feb8ac3accb46700e7.tar.gz
nixpkgs-805d453bc227bd03afffa2feb8ac3accb46700e7.tar.bz2
nixpkgs-805d453bc227bd03afffa2feb8ac3accb46700e7.tar.lz
nixpkgs-805d453bc227bd03afffa2feb8ac3accb46700e7.tar.xz
nixpkgs-805d453bc227bd03afffa2feb8ac3accb46700e7.tar.zst
nixpkgs-805d453bc227bd03afffa2feb8ac3accb46700e7.zip
nvidia: branch update 352.63 -> 358.16 (close #12272)
Tested & reviewed by vcunat:
- the patch seems not needed anymore,
- reflects changes in their build system
  ftp://download.nvidia.com/XFree86/packaging/linux/new-kbuild-for-355/README
Diffstat (limited to 'pkgs/os-specific/linux/nvidia-x11/builder.sh')
-rwxr-xr-xpkgs/os-specific/linux/nvidia-x11/builder.sh16
1 files changed, 6 insertions, 10 deletions
diff --git a/pkgs/os-specific/linux/nvidia-x11/builder.sh b/pkgs/os-specific/linux/nvidia-x11/builder.sh
index ba65089a4f7..502648c1d51 100755
--- a/pkgs/os-specific/linux/nvidia-x11/builder.sh
+++ b/pkgs/os-specific/linux/nvidia-x11/builder.sh
@@ -21,14 +21,6 @@ buildPhase() {
         unset src # used by the nv makefile
         make SYSSRC=$sysSrc SYSOUT=$sysOut module
 
-        # nvidia no longer provides uvm kernel module for 32-bit archs
-        # http://www.nvidia.com/download/driverResults.aspx/79722/en-us
-        if [[ "$system" = "x86_64-linux" ]]; then
-            cd uvm
-            make SYSSRC=$sysSrc SYSOUT=$sysOut module
-            cd ..
-        fi
-
         cd ..
     fi
 }
@@ -73,8 +65,12 @@ installPhase() {
           ln -srnf "$libname" "$libname_short.2"
       fi
 
-      ln -srnf "$libname" "$libname_short"
-      ln -srnf "$libname" "$libname_short.1"
+      if [[ "$libname" != "$libname_short" ]]; then
+        ln -srnf "$libname" "$libname_short"
+      fi
+      if [[ "$libname" != "$libname_short.1" ]]; then
+        ln -srnf "$libname" "$libname_short.1"
+      fi
     done
 
     #patchelf --set-rpath $out/lib:$glPath $out/lib/libGL.so.*.*