02e6a689be
I also add gdk_pixbuf; otherwise nvidia-settings does not start.
43 lines
1.3 KiB
Nix
43 lines
1.3 KiB
Nix
{stdenv, fetchurl, kernel, xlibs, zlib, gtk, atk, pango, glib, gdk_pixbuf}:
|
|
|
|
let
|
|
|
|
versionNumber = "173.14.35";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "nvidia-x11-${versionNumber}-${kernel.version}";
|
|
|
|
builder = ./builder-legacy.sh;
|
|
|
|
src =
|
|
if stdenv.system == "i686-linux" then
|
|
fetchurl {
|
|
url = "http://us.download.nvidia.com/XFree86/Linux-x86/${versionNumber}/NVIDIA-Linux-x86-${versionNumber}-pkg0.run";
|
|
sha256 = "16kjxj2bn78cgyb4xq39zajjv1hx1z5dw50n9r17w14ifq7i09id";
|
|
}
|
|
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}-pkg0.run";
|
|
sha256 = "0mk7pj7in090dx2v5yzkd7qkaf0qvz3jv4cmpiflpmzmg9p15x8n";
|
|
}
|
|
else throw "nvidia-x11 does not support platform ${stdenv.system}";
|
|
|
|
inherit versionNumber kernel;
|
|
|
|
dontStrip = true;
|
|
|
|
glPath = stdenv.lib.makeLibraryPath [xlibs.libXext xlibs.libX11 xlibs.libXrandr];
|
|
|
|
cudaPath = stdenv.lib.makeLibraryPath [zlib stdenv.gcc.gcc];
|
|
|
|
programPath = stdenv.lib.makeLibraryPath [ gtk atk pango glib gdk_pixbuf xlibs.libXv ];
|
|
|
|
meta = {
|
|
homepage = http://www.nvidia.com/object/unix.html;
|
|
description = "X.org driver and kernel module for Legacy NVIDIA graphics cards";
|
|
license = "unfree";
|
|
};
|
|
}
|