git.iko.soy/typeable/nixpkgs
on master help sign in
nvidia-x11: 358.16 -> 361.42

This fixes the segfault reported in #13942 caused by missing libEGL.so.0 and libEGL_nvidia.so.0 symlinks.

commit59ef7d25c3944f2b46461181f6bc99f183389644 authorEelco Dolstra <eelco.dolstra@logicblox.com> dateWed 6 Apr 2016, 15:50 (11 years ago) parent77103ed
2 files changed+14−13
pkgs/os-specific/linux/nvidia-x11/builder.sh+11−10 pkgs/os-specific/linux/nvidia-x11/default.nix+3−3
pkgs/os-specific/linux/nvidia-x11/builder.sh+11−10
@@ -34,6 +34,8 @@ installPhase() {
3434 cp -prd *.so.* tls "$out/lib/"
3535 rm "$out"/lib/lib{glx,nvidia-wfb}.so.* # handled separately
3636
37+ rm $out/lib/libGL.so.1.* # GLVND
38+
3739 if test -z "$libsOnly"; then
3840 # Install the X drivers.
3941 mkdir -p $out/lib/xorg/modules
@@ -60,16 +62,18 @@ installPhase() {
6062
6163 libname_short=`echo -n "$libname" | sed 's/so\..*/so/'`
6264
63− # nvidia's EGL stack seems to expect libGLESv2.so.2 to be available
64− if [ $(basename "$libname_short") == "libGLESv2.so" ]; then
65− ln -srnf "$libname" "$libname_short.2"
66− fi
67−
6865 if [[ "$libname" != "$libname_short" ]]; then
6966 ln -srnf "$libname" "$libname_short"
7067 fi
71− if [[ "$libname" != "$libname_short.1" ]]; then
72− ln -srnf "$libname" "$libname_short.1"
68+
69+ if [[ $libname_short =~ libEGL.so || $libname_short =~ libEGL_nvidia.so ]]; then
70+ major=0
71+ else
72+ major=1
73+ fi
74+
75+ if [[ "$libname" != "$libname_short.$major" ]]; then
76+ ln -srnf "$libname" "$libname_short.$major"
7377 fi
7478 done
7579
@@ -119,9 +123,6 @@ installPhase() {
119123 # For simplicity and dependency reduction, don't support the gtk3 interface.
120124 rm $out/lib/libnvidia-gtk3.*
121125
122− # We distribute these separately in `libvdpau`
123− rm "$out"/lib/libvdpau{.*,_trace.*}
124−
125126 # Move VDPAU libraries to their place
126127 mkdir "$out"/lib/vdpau
127128 mv "$out"/lib/libvdpau* "$out"/lib/vdpau
pkgs/os-specific/linux/nvidia-x11/default.nix+3−3
@@ -12,7 +12,7 @@ assert (!libsOnly) -> kernel != null;
1212
1313let
1414
15− versionNumber = "358.16";
15+ versionNumber = "361.42";
1616
1717 # Policy: use the highest stable version as the default (on our master).
1818 inherit (stdenv.lib) makeLibraryPath;
@@ -28,12 +28,12 @@ stdenv.mkDerivation {
2828 if stdenv.system == "i686-linux" then
2929 fetchurl {
3030 url = "http://download.nvidia.com/XFree86/Linux-x86/${versionNumber}/NVIDIA-Linux-x86-${versionNumber}.run";
31− sha256 = "1cc0zsri92nz2mznabfd6pqckm9mlbszmysqqqh3w5mipwn898nk";
31+ sha256 = "10jfdrmjcddgp7kg9l3dwxjh4b7sdrg86nwaf6zalfnsc9zh8bg3";
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";
36− sha256 = "1xr16faam2zsx8ajwm9g9302m6qjzyjh1zd56g8jhc8jxg8h43sg";
36+ sha256 = "04yyrzk4xzq1i386mdxfwg4dqiclvj1fm195qsqy0r79zmpc3kq4";
3737 }
3838 else throw "nvidia-x11 does not support platform ${stdenv.system}";
3939