mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 10:56:53 +00:00
fc5eebdf8b
(https://svn.nixos.org/repos/nix/nixpkgs/branches/stdenv-updates -r10966:12061). svn path=/nixpkgs/trunk/; revision=12073
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{stdenv, fetchurl, kernel, xlibs, gtkLibs, zlib}:
|
|
|
|
let
|
|
|
|
versionNumber = "173.14.05";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "nvidia-x11-${versionNumber}-${kernel.version}";
|
|
|
|
builder = ./builder.sh;
|
|
|
|
src =
|
|
if stdenv.system == "i686-linux" then
|
|
fetchurl {
|
|
url = "http://us.download.nvidia.com/XFree86/Linux-x86/${versionNumber}/NVIDIA-Linux-x86-${versionNumber}-pkg1.run";
|
|
sha256 = "14r3zddrppd0zxq76dd08dlj4qqncr7fj9cnrny4f0b5d0qgrd3f";
|
|
}
|
|
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";
|
|
sha256 = "0dmgn5a0432zkhgh0d5xs2h0sq5di2iaqybrj5f1vb2ghayams1y";
|
|
}
|
|
else throw "nvidia-x11 does not support platform ${stdenv.system}";
|
|
|
|
#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
|
|
];
|
|
}
|