nixpkgs/pkgs/os-specific/linux/nvidia/default.nix
Eelco Dolstra 268148c794 * Latest NVIDIA driver. Hopefully this fixes my suspend-to-RAM problems.
Also, use the pkg0 download, since pkg1/pkg2 apparently just contain
  precompiled modules that we don't need.

svn path=/nixpkgs/trunk/; revision=14018
2009-02-10 11:06:41 +00:00

44 lines
1.2 KiB
Nix

{stdenv, fetchurl, kernel, xlibs, gtkLibs, zlib}:
let
versionNumber = "180.29";
in
stdenv.mkDerivation {
name = "nvidia-x11-${versionNumber}-${kernel.version}";
builder = ./builder.sh;
src =
if stdenv.system == "i686-linux" then
fetchurl {
url = "ftp://download.nvidia.com/XFree86/Linux-x86/${versionNumber}/NVIDIA-Linux-x86-${versionNumber}-pkg0.run";
sha256 = "17wgg5rf5384bxng9ygwarf4imvvg069zihfvvvmahg1b0fsipvq";
}
else if stdenv.system == "x86_64-linux" then
fetchurl {
url = "ftp://download.nvidia.com/XFree86/Linux-x86_64/${versionNumber}/NVIDIA-Linux-x86_64-${versionNumber}-pkg0.run";
sha256 = "1w7a67s5df8i5lbr2r980l674wvrqzzys1zdwcla267zy109rp5d";
}
else throw "nvidia-x11 does not support platform ${stdenv.system}";
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
];
meta = {
homepage = http://www.nvidia.com/object/unix.html;
description = "X.org driver and kernel module for NVIDIA graphics cards";
};
}