@@ -26,7 +26,7 @@ if ! lists.elem stdenv.system platforms.mesaPlatforms then
2626else
2727
2828let
29− version = "13.0.0";
29+ version = "12.0.3";
3030 branch = head (splitString "." version);
3131 driverLink = "/run/opengl-driver" + optionalString stdenv.isi686 "-32";
3232in
@@ -40,7 +40,7 @@ stdenv.mkDerivation {
4040 "ftp://ftp.freedesktop.org/pub/mesa/older-versions/${branch}.x/${version}/mesa-${version}.tar.xz"
4141 "https://launchpad.net/mesa/trunk/${version}/+download/mesa-${version}.tar.xz"
4242 ];
43− sha256 = "09yp4wh89srxqqzsnrqgw4gmx68mgxic5nbrprl6l1l2zzmv9vcl";
43+ sha256 = "1dc86dd9b51272eee1fad3df65e18cda2e556ef1bc0b6e07cd750b9757f493b1";
4444 };
4545
4646 prePatch = "patchShebangs .";
@@ -51,7 +51,11 @@ stdenv.mkDerivation {
5151 patches = [
5252 ./glx_ro_text_segm.patch # fix for grsecurity/PaX
5353 ./symlink-drivers.patch
54− ];
54+ ] ++ optional stdenv.isLinux
55+ (substituteAll {
56+ src = ./dlopen-absolute-paths.diff;
57+ libudev = systemd.lib;
58+ });
5559
5660 postPatch = ''
5761 substituteInPlace src/egl/main/egldriver.c \