git.iko.soy/typeable/nixpkgs
on master help sign in
nvidia_x11_legacy340: update 340.76 -> 340.94

Fixes #13658.

commit54d342add8ab512c5650e1b2da25708622dd327d authorVladimír Čunát <vcunat@gmail.com> dateThu 3 Mar 2016, 22:38 (11 years ago) parentbeefe9c
2 files changed+6−35
pkgs/os-specific/linux/nvidia-x11/legacy340.nix+6−7 pkgs/os-specific/linux/nvidia-x11/nvidia-340.76-kernel-4.0.patch−28
pkgs/os-specific/linux/nvidia-x11/legacy340.nix+6−7
@@ -12,7 +12,7 @@ assert (!libsOnly) -> kernel != null;
1212
1313let
1414
15− versionNumber = "340.76";
15+ versionNumber = "340.96";
1616 /* This branch is needed for G8x, G9x, and GT2xx GPUs, and motherboard chipsets based on them.
1717 Ongoing support for new Linux kernels and X servers, as well as fixes for critical bugs,
1818 will be included in 340.* legacy releases through the end of 2019.
@@ -25,18 +25,16 @@ stdenv.mkDerivation {
2525
2626 builder = ./builder-legacy340.sh;
2727
28− patches = [ ./nvidia-340.76-kernel-4.0.patch ];
29−
3028 src =
3129 if stdenv.system == "i686-linux" then
3230 fetchurl {
33− url = "http://us.download.nvidia.com/XFree86/Linux-x86/${versionNumber}/NVIDIA-Linux-x86-${versionNumber}.run";
34− sha256 = "1l1nn340hc8iwlzb16gcm2xvnvkw7rf84ll89bcax70094xxjacv";
31+ url = "http://download.nvidia.com/XFree86/Linux-x86/${versionNumber}/NVIDIA-Linux-x86-${versionNumber}.run";
32+ sha256 = "13j739gg1igll88xpfsx46m7pan4fwpzx5hqdskkdc0srmw2f3n4";
3533 }
3634 else if stdenv.system == "x86_64-linux" then
3735 fetchurl {
38− url = "http://us.download.nvidia.com/XFree86/Linux-x86_64/${versionNumber}/NVIDIA-Linux-x86_64-${versionNumber}-no-compat32.run";
39− sha256 = "016hnsgrcm4ly0mnkcd6c1qkciy3qmbwdwy4rlwq3m6dh4ixw7jc";
36+ url = "http://download.nvidia.com/XFree86/Linux-x86_64/${versionNumber}/NVIDIA-Linux-x86_64-${versionNumber}-no-compat32.run";
37+ sha256 = "1i0lri76ghhr4c6fdlv5gwzd99n70hv3kw21w51anb55msr9s3r8";
4038 }
4139 else throw "nvidia-x11 does not support platform ${stdenv.system}";
4240
@@ -62,5 +60,6 @@ stdenv.mkDerivation {
6260 license = licenses.unfreeRedistributable;
6361 platforms = platforms.linux;
6462 maintainers = [ maintainers.vcunat ];
63+ priority = 4; # resolves collision with xorg-server's "lib/xorg/modules/extensions/libglx.so"
6564 };
6665}
pkgs/os-specific/linux/nvidia-x11/nvidia-340.76-kernel-4.0.patchdeleted−28
@@ -1,28 +0,0 @@
1−--- a/kernel/nv-pat.c 2015-07-03 08:39:35.417031728 +0200
2−+++ b/kernel/nv-pat.c 2015-07-03 08:42:15.631838988 +0200
3−@@ -35,8 +35,13 @@
4− unsigned long cr0 = read_cr0();
5− write_cr0(((cr0 & (0xdfffffff)) | 0x40000000));
6− wbinvd();
7−+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0)
8− *cr4 = read_cr4();
9− if (*cr4 & 0x80) write_cr4(*cr4 & ~0x80);
10−+#else
11−+ *cr4 = __read_cr4();
12−+ if (*cr4 & 0x80) __write_cr4(*cr4 & ~0x80);
13−+#endif
14− __flush_tlb();
15− }
16−
17−@@ -46,7 +51,11 @@
18− wbinvd();
19− __flush_tlb();
20− write_cr0((cr0 & 0x9fffffff));
21−+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 18, 0)
22− if (cr4 & 0x80) write_cr4(cr4);
23−+#else
24−+ if (cr4 & 0x80) __write_cr4(cr4);
25−+#endif
26− }
27−
28− static int nv_determine_pat_mode(void)