2008-06-04 11:59:33 +02:00
|
|
|
{stdenv, fetchurl, kernel, xlibs, gtkLibs, zlib}:
|
2007-05-28 16:10:46 +02:00
|
|
|
|
2007-07-12 13:52:34 +02:00
|
|
|
let
|
|
|
|
|
2008-10-08 14:45:39 +02:00
|
|
|
versionNumber = "177.80";
|
2007-07-12 13:52:34 +02:00
|
|
|
|
|
|
|
in
|
2008-01-07 23:54:30 +01:00
|
|
|
|
2007-05-28 16:10:46 +02:00
|
|
|
stdenv.mkDerivation {
|
2008-06-13 13:46:39 +02:00
|
|
|
name = "nvidia-x11-${versionNumber}-${kernel.version}";
|
2008-06-12 16:04:06 +02:00
|
|
|
|
2007-05-28 16:10:46 +02:00
|
|
|
builder = ./builder.sh;
|
|
|
|
|
2008-06-12 16:04:06 +02:00
|
|
|
src =
|
|
|
|
if stdenv.system == "i686-linux" then
|
|
|
|
fetchurl {
|
|
|
|
url = "http://us.download.nvidia.com/XFree86/Linux-x86/${versionNumber}/NVIDIA-Linux-x86-${versionNumber}-pkg1.run";
|
2008-10-08 14:45:39 +02:00
|
|
|
sha256 = "1z6z4dzhl2zmnwywaxbn2nf7lf72whjn7ffasdkb9217d5099wh7";
|
2008-06-12 16:04:06 +02:00
|
|
|
}
|
|
|
|
else if stdenv.system == "x86_64-linux" then
|
|
|
|
fetchurl {
|
|
|
|
url = "http://us.download.nvidia.com/XFree86/Linux-x86_64/${versionNumber}/NVIDIA-Linux-x86_64-${versionNumber}-pkg2.run";
|
2008-10-08 14:45:39 +02:00
|
|
|
sha256 = "1kx1kpc5flbsy9h1ii8al8cwzmvlfg4ymr6hvqsanxcdarq1sz47";
|
2008-06-12 16:04:06 +02:00
|
|
|
}
|
|
|
|
else throw "nvidia-x11 does not support platform ${stdenv.system}";
|
2008-05-29 15:22:12 +02:00
|
|
|
|
2008-01-07 23:54:30 +01:00
|
|
|
inherit versionNumber kernel;
|
2007-05-28 16:10:46 +02:00
|
|
|
|
2008-03-04 11:06:21 +01:00
|
|
|
dontStrip = true;
|
|
|
|
|
2008-06-04 11:59:33 +02:00
|
|
|
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
|
2007-05-28 16:10:46 +02:00
|
|
|
];
|
2008-08-07 18:47:08 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.nvidia.com/object/unix.html;
|
|
|
|
description = "X.org driver and kernel module for NVIDIA graphics cards";
|
|
|
|
};
|
2007-05-28 16:10:46 +02:00
|
|
|
}
|