2008-06-04 10:59:33 +01:00
|
|
|
{stdenv, fetchurl, kernel, xlibs, gtkLibs, zlib}:
|
2007-05-28 15:10:46 +01:00
|
|
|
|
2007-07-12 12:52:34 +01:00
|
|
|
let
|
|
|
|
|
2009-01-12 17:00:25 +00:00
|
|
|
versionNumber = "180.22";
|
2007-07-12 12:52:34 +01:00
|
|
|
|
|
|
|
in
|
2008-01-07 22:54:30 +00:00
|
|
|
|
2007-05-28 15:10:46 +01:00
|
|
|
stdenv.mkDerivation {
|
2008-06-13 12:46:39 +01:00
|
|
|
name = "nvidia-x11-${versionNumber}-${kernel.version}";
|
2008-06-12 15:04:06 +01:00
|
|
|
|
2007-05-28 15:10:46 +01:00
|
|
|
builder = ./builder.sh;
|
|
|
|
|
2008-06-12 15:04:06 +01: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";
|
2009-01-12 17:00:25 +00:00
|
|
|
sha256 = "0cp6ii14pm8kzy1fy1qx2id2fp0lmb02akddid8wwdca7xpczqg7";
|
2008-06-12 15:04:06 +01: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";
|
2009-01-12 17:00:25 +00:00
|
|
|
sha256 = "0yycsr8i5cc8bnqwvfrk0v9d7gxxv42zqdpz9ki8vxil7lvjfdxv";
|
2008-06-12 15:04:06 +01:00
|
|
|
}
|
|
|
|
else throw "nvidia-x11 does not support platform ${stdenv.system}";
|
2008-05-29 14:22:12 +01:00
|
|
|
|
2008-01-07 22:54:30 +00:00
|
|
|
inherit versionNumber kernel;
|
2007-05-28 15:10:46 +01:00
|
|
|
|
2008-03-04 10:06:21 +00:00
|
|
|
dontStrip = true;
|
|
|
|
|
2008-06-04 10:59:33 +01: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 15:10:46 +01:00
|
|
|
];
|
2008-08-07 17:47:08 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.nvidia.com/object/unix.html;
|
|
|
|
description = "X.org driver and kernel module for NVIDIA graphics cards";
|
|
|
|
};
|
2007-05-28 15:10:46 +01:00
|
|
|
}
|