2007-05-28 15:10:46 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
|
|
|
|
, kernel
|
|
|
|
, coreutils
|
|
|
|
, xorg_server
|
|
|
|
|
|
|
|
#deps
|
|
|
|
,libXext, libX11
|
|
|
|
|
|
|
|
}:
|
|
|
|
|
2007-07-12 12:52:34 +01:00
|
|
|
let
|
|
|
|
|
2007-09-24 15:28:52 +01:00
|
|
|
versionNumber = "100.14.19"; #important ! to also update this if the sources are updated, this is used as follows: extensions/libglx.so.$versionNumber
|
2007-07-12 12:52:34 +01:00
|
|
|
|
|
|
|
in
|
2007-05-28 15:10:46 +01:00
|
|
|
stdenv.mkDerivation {
|
2007-07-12 12:52:34 +01:00
|
|
|
name = "nvidiaDrivers-" + versionNumber;
|
2007-05-28 15:10:46 +01:00
|
|
|
builder = ./builder.sh;
|
|
|
|
|
2007-09-24 15:28:52 +01:00
|
|
|
|
2007-05-28 15:10:46 +01:00
|
|
|
nvidiasrc = fetchurl { #we cannot use $src since this variable is also used in the nvidia sources
|
2007-07-11 12:26:35 +01:00
|
|
|
#url = http://www.denbreejen.net/public/nixos/NVIDIA-Linux-x86-1.0-9755-pkg1.run;
|
|
|
|
#sha256 = "1985373866b1dcae80f3da66dbbbd3c28ad76e75a620865be321ee870ad9d1ea";
|
2007-09-24 15:28:52 +01:00
|
|
|
#url = http://us.download.nvidia.com/XFree86/Linux-x86/100.14.11/NVIDIA-Linux-x86-100.14.11-pkg1.run;
|
|
|
|
#sha256 = "8665370e590328cc5bf3d13737739a80dacbfb6844436cab03c992e84bf16b0c";
|
|
|
|
url = http://us.download.nvidia.com/XFree86/Linux-x86/100.14.19/NVIDIA-Linux-x86-100.14.19-pkg1.run;
|
|
|
|
sha256 = "4dc97d8ff5340954f3cd446093636261c54b147e9721eb295574207d79e9a7e7";
|
2007-05-28 15:10:46 +01:00
|
|
|
};
|
2007-07-12 12:52:34 +01:00
|
|
|
inherit versionNumber;
|
2007-05-28 15:10:46 +01:00
|
|
|
|
|
|
|
kernelOutPath = kernel.outPath;
|
|
|
|
xorgOutPath = xorg_server.outPath;
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libXext libX11
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
libX11 libXext
|
|
|
|
];
|
|
|
|
|
|
|
|
NIX_LDFLAGS = "-rpath ${libX11}/lib -rpath ${libXext}/lib";
|
|
|
|
LD_LIBRARY_PATH = "${libX11}/lib:${libXext}/lib/";
|
|
|
|
}
|