git.iko.soy/typeable/nixpkgs
on master help sign in
ati-driver: Bump version to 14.12
3525f71Jascha Geerds
pkgs/os-specific/linux/ati-drivers/builder.sh+1
@@ -224,6 +224,7 @@ fi
224
224
225 # libstdc++ and gcc are needed by some libs
225 # libstdc++ and gcc are needed by some libs
226 patchelf --set-rpath $gcc/$lib_arch $out/lib/libatiadlxx.so
226 patchelf --set-rpath $gcc/$lib_arch $out/lib/libatiadlxx.so
227+ patchelf --set-rpath $gcc/$lib_arch $out/lib/xorg/modules/glesx.so
227}
228}
228
229
229if test -z "$libsOnly"; then
230if test -z "$libsOnly"; then
pkgs/os-specific/linux/ati-drivers/default.nix+3−4
@@ -31,7 +31,7 @@ assert (!libsOnly) -> kernel != null;
31with stdenv.lib;
31with stdenv.lib;
32
32
33stdenv.mkDerivation {
33stdenv.mkDerivation {
34− name = "ati-drivers-14.4" + (optionalString (!libsOnly) "-${kernel.version}");
34+ name = "ati-drivers-14.12" + (optionalString (!libsOnly) "-${kernel.version}");
35
35
36 builder = ./builder.sh;
36 builder = ./builder.sh;
37
37
@@ -39,13 +39,12 @@ stdenv.mkDerivation {
39 gcc = stdenv.gcc.gcc;
39 gcc = stdenv.gcc.gcc;
40
40
41 src = fetchurl {
41 src = fetchurl {
42− url = http://www2.ati.com/drivers/linux/amd-catalyst-14-4-rev2-linux-x86-x86-64-may6.zip;
42+ url = http://www2.ati.com/drivers/linux/amd-catalyst-omega-14.12-linux-run-installers.zip;
43− sha256 = "1xbhn55yifis9b0lzb3s03hc1bcq8jmy7l96m4x8d842n7ji7qlk";
43+ sha256 = "0jd2scrdlyapynxfjdrarnwcdzxjqrk5fg5i10g3bm0ay8v9hrk8";
44 curlOpts = "--referer http://support.amd.com/en-us/download/desktop?os=Linux%20x86_64";
44 curlOpts = "--referer http://support.amd.com/en-us/download/desktop?os=Linux%20x86_64";
45 };
45 };
46
46
47 # most patches are taken from gentoo
47 # most patches are taken from gentoo
48− patchPhase = "patch -p1 < ${./gentoo-patches.patch}";
49 patchPhaseSamples = "patch -p2 < ${./patch-samples.patch}";
48 patchPhaseSamples = "patch -p2 < ${./patch-samples.patch}";
50
49
51 buildInputs =
50 buildInputs =
pkgs/os-specific/linux/ati-drivers/gentoo-patches.patchdeleted−33
@@ -1,33 +0,0 @@
1−diff --git a/common/lib/modules/fglrx/build_mod/firegl_public.c b/common/lib/modules/fglrx/build_mod/firegl_public.c
2−index d3ad3ce..9362b58 100755
3−--- a/common/lib/modules/fglrx/build_mod/firegl_public.c
4−+++ b/common/lib/modules/fglrx/build_mod/firegl_public.c
5−@@ -34,6 +34,11 @@
6− #include <linux/autoconf.h>
7− #endif
8−
9−+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)
10−+#include <linux/uidgid.h>
11−+#endif
12−+
13−+
14− #if !defined(CONFIG_X86)
15− #if !defined(CONFIG_X86_PC)
16− #if !defined(CONFIG_X86_XEN)
17−@@ -1543,9 +1548,17 @@ KCL_TYPE_Pid ATI_API_CALL KCL_GetTgid(void)
18− KCL_TYPE_Uid ATI_API_CALL KCL_GetEffectiveUid(void)
19− {
20− #ifdef current_euid
21−+# if LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)
22−+ return __kuid_val(current_euid());
23−+# else
24− return current_euid();
25−+# endif
26− #else
27−+# if LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)
28−+ return __kuid_val(current->euid);
29−+# else
30− return current->euid;
31−+# endif
32− #endif
33− }