git.iko.soy/typeable/nixpkgs
on master help sign in
ati-driver: Bump version to 14.12
commit3525f7135f9e7ce532facf815c4132b2d9fb7d95 authorJascha Geerds <jg@ekby.de> dateWed 10 Dec 2014, 21:12 (12 years ago) parent0b1d16c
3 files changed+4−37
pkgs/os-specific/linux/ati-drivers/builder.sh+1 pkgs/os-specific/linux/ati-drivers/default.nix+3−4 pkgs/os-specific/linux/ati-drivers/gentoo-patches.patch−33
pkgs/os-specific/linux/ati-drivers/builder.sh+1
@@ -224,6 +224,7 @@ fi
224224
225225 # libstdc++ and gcc are needed by some libs
226226 patchelf --set-rpath $gcc/$lib_arch $out/lib/libatiadlxx.so
227+ patchelf --set-rpath $gcc/$lib_arch $out/lib/xorg/modules/glesx.so
227228}
228229
229230if test -z "$libsOnly"; then
pkgs/os-specific/linux/ati-drivers/default.nix+3−4
@@ -31,7 +31,7 @@ assert (!libsOnly) -> kernel != null;
3131with stdenv.lib;
3232
3333stdenv.mkDerivation {
34− name = "ati-drivers-14.4" + (optionalString (!libsOnly) "-${kernel.version}");
34+ name = "ati-drivers-14.12" + (optionalString (!libsOnly) "-${kernel.version}");
3535
3636 builder = ./builder.sh;
3737
@@ -39,13 +39,12 @@ stdenv.mkDerivation {
3939 gcc = stdenv.gcc.gcc;
4040
4141 src = fetchurl {
42− url = http://www2.ati.com/drivers/linux/amd-catalyst-14-4-rev2-linux-x86-x86-64-may6.zip;
43− sha256 = "1xbhn55yifis9b0lzb3s03hc1bcq8jmy7l96m4x8d842n7ji7qlk";
42+ url = http://www2.ati.com/drivers/linux/amd-catalyst-omega-14.12-linux-run-installers.zip;
43+ sha256 = "0jd2scrdlyapynxfjdrarnwcdzxjqrk5fg5i10g3bm0ay8v9hrk8";
4444 curlOpts = "--referer http://support.amd.com/en-us/download/desktop?os=Linux%20x86_64";
4545 };
4646
4747 # most patches are taken from gentoo
48− patchPhase = "patch -p1 < ${./gentoo-patches.patch}";
4948 patchPhaseSamples = "patch -p2 < ${./patch-samples.patch}";
5049
5150 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− }