9029c3b61f
that applications that link against it don't need to have its dependencies (like libXext) in *their* RUNPATHs. * glxinfo: don't add /var/run/opengl-driver/lib to the RUNPATH. Instead LD_LIBRARY_PATH should be set to /var/run/opengl-driver/lib at runtime. This is much more pure, and it obviates the need for patchelfing all OpenGL applications. (TODO: remove patchelf hacks for other OpenGL programs as well.) svn path=/nixpkgs/branches/stdenv-updates/; revision=11972
33 lines
750 B
Nix
33 lines
750 B
Nix
{stdenv, fetchurl, kernel, xlibs, gtkLibs, zlib}:
|
|
|
|
let
|
|
|
|
versionNumber = "173.14.05";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "nvidia-x11-${versionNumber}";
|
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
|
url = "http://us.download.nvidia.com/XFree86/Linux-x86/${versionNumber}/NVIDIA-Linux-x86-${versionNumber}-pkg1.run";
|
|
sha256 = "14r3zddrppd0zxq76dd08dlj4qqncr7fj9cnrny4f0b5d0qgrd3f";
|
|
};
|
|
|
|
#xenPatch = ./nvidia-2.6.24-xen.patch;
|
|
|
|
inherit versionNumber kernel;
|
|
|
|
dontStrip = true;
|
|
|
|
glPath = stdenv.lib.makeLibraryPath [xlibs.libXext xlibs.libX11];
|
|
|
|
cudaPath = stdenv.lib.makeLibraryPath [zlib stdenv.gcc.gcc];
|
|
|
|
programPath = stdenv.lib.makeLibraryPath [
|
|
gtkLibs.gtk gtkLibs.atk gtkLibs.pango gtkLibs.glib xlibs.libXv
|
|
];
|
|
}
|