···12121313let
14141515- versionNumber = "349.12";
1515+ versionNumber = "361.18";
16161717 # Policy: use the highest stable version as the default (on our master).
1818 inherit (stdenv.lib) makeLibraryPath;
···2727 src =
2828 if stdenv.system == "i686-linux" then
2929 fetchurl {
3030- url = "http://us.download.nvidia.com/XFree86/Linux-x86/${versionNumber}/NVIDIA-Linux-x86-${versionNumber}.run";
3131- sha256 = "0x9zfw66nxv98zpkdkymlyqzspksk850bhfmza7g7pba4yba085h";
3030+ url = "http://download.nvidia.com/XFree86/Linux-x86/${versionNumber}/NVIDIA-Linux-x86-${versionNumber}.run";
3131+ sha256 = "1n6nrz59r3dgcpkcpr4yw997fygkpsdbv1x45c30w781w0j1q5s5";
3232 }
3333 else if stdenv.system == "x86_64-linux" then
3434 fetchurl {
3535- url = "http://us.download.nvidia.com/XFree86/Linux-x86_64/${versionNumber}/NVIDIA-Linux-x86_64-${versionNumber}-no-compat32.run";
3636- sha256 = "19mfkigzffxsik3h4bsjsl481q410h804fz3rdc7chs86q4bg9h3";
3535+ url = "http://download.nvidia.com/XFree86/Linux-x86_64/${versionNumber}/NVIDIA-Linux-x86_64-${versionNumber}-no-compat32.run";
3636+ sha256 = "12fi7vb697h38qh0f2j40q76yx9fqk6vwx20zfxhac3fvdhw2sj0";
3737 }
3838 else throw "nvidia-x11 does not support platform ${stdenv.system}";
3939
+10-5
pkgs/os-specific/linux/nvidia-x11/builder.sh
···1919 sysSrc=$(echo $kernel/lib/modules/$kernelVersion/source)
2020 sysOut=$(echo $kernel/lib/modules/$kernelVersion/build)
2121 unset src # used by the nv makefile
2222- make SYSSRC=$sysSrc SYSOUT=$sysOut module
2222+ make SYSSRC=$sysSrc SYSOUT=$sysOut module "-j${NIX_BUILD_CORES}" "-l${NIX_BUILD_CORES}"
23232424 cd ..
2525 fi
···33333434 cp -prd *.so.* tls "$out/lib/"
3535 rm "$out"/lib/lib{glx,nvidia-wfb}.so.* # handled separately
3636+3737+ # According to nvidia, we're supposed to use GLVND.
3838+ # But so far I've failed to make any applications run using that stack.
3939+ #
4040+ # If you want to try it, swap the two lines below.
4141+4242+ #rm "$out"/lib/libGL.so.${versionNumber} # Non-GLVND
4343+ rm $out/lib/libGL.so.1.* # GLVND
36443745 if test -z "$libsOnly"; then
3846 # Install the X drivers.
···6169 libname_short=`echo -n "$libname" | sed 's/so\..*/so/'`
62706371 # nvidia's EGL stack seems to expect libGLESv2.so.2 to be available
6464- if [ $(basename "$libname_short") == "libGLESv2.so" ]; then
7272+ if [ $(basename "$libname_short") == "libGLESv2.so" -a "$libname" != "$libname_short.2" ]; then
6573 ln -srnf "$libname" "$libname_short.2"
6674 fi
6775···118126119127 # For simplicity and dependency reduction, don't support the gtk3 interface.
120128 rm $out/lib/libnvidia-gtk3.*
121121-122122- # We distribute these separately in `libvdpau`
123123- rm "$out"/lib/libvdpau{.*,_trace.*}
124129125130 # Move VDPAU libraries to their place
126131 mkdir "$out"/lib/vdpau
+3-3
pkgs/os-specific/linux/nvidia-x11/default.nix
···12121313let
14141515- versionNumber = "358.16";
1515+ versionNumber = "361.28";
16161717 # Policy: use the highest stable version as the default (on our master).
1818 inherit (stdenv.lib) makeLibraryPath;
···2828 if stdenv.system == "i686-linux" then
2929 fetchurl {
3030 url = "http://download.nvidia.com/XFree86/Linux-x86/${versionNumber}/NVIDIA-Linux-x86-${versionNumber}.run";
3131- sha256 = "1cc0zsri92nz2mznabfd6pqckm9mlbszmysqqqh3w5mipwn898nk";
3131+ sha256 = "013l9hfjc7gyk5g2v2h71lwjmx4dqlkczsb17cz833fnadcrn4hs";
3232 }
3333 else if stdenv.system == "x86_64-linux" then
3434 fetchurl {
3535 url = "http://download.nvidia.com/XFree86/Linux-x86_64/${versionNumber}/NVIDIA-Linux-x86_64-${versionNumber}-no-compat32.run";
3636- sha256 = "1xr16faam2zsx8ajwm9g9302m6qjzyjh1zd56g8jhc8jxg8h43sg";
3636+ sha256 = "1kq335mdmwlgp0lp9z8wrwyh48p2xv2nwdlgfj7b83vsh6ib17a4";
3737 }
3838 else throw "nvidia-x11 does not support platform ${stdenv.system}";
3939