From 729162873e341135aa36dc23dca2c3fdcf4e86b6 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 14 Jan 2012 12:13:51 +0000 Subject: [PATCH] Revert "mesa: updated to version 7.11.2" This reverts commit b18ddb0ac8bc232df2cfd2980bd22ee9beae7b12. svn path=/nixpkgs/trunk/; revision=31536 --- pkgs/development/libraries/mesa/default.nix | 26 ++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/pkgs/development/libraries/mesa/default.nix b/pkgs/development/libraries/mesa/default.nix index 5e7fdb5ed161..6a1de4d95e4a 100644 --- a/pkgs/development/libraries/mesa/default.nix +++ b/pkgs/development/libraries/mesa/default.nix @@ -1,37 +1,37 @@ -{ stdenv, fetchurl, flex, bison, pkgconfig, libdrm, file, expat, makedepend -, libXxf86vm, libXfixes, libXdamage, glproto, dri2proto, libX11, libxcb, libXext -, libXt, udev +{ stdenv, fetchurl, flex, bison, pkgconfig, x11, xlibs, libdrm, file, expat , python, libxml2Python, lipo ? null }: if ! stdenv.lib.lists.elem stdenv.system stdenv.lib.platforms.mesaPlatforms then throw "unsupported platform for Mesa" else -let version = "7.11.2"; in +let version = "7.10.3"; in stdenv.mkDerivation { name = "mesa-${version}"; src = fetchurl { url = "ftp://ftp.freedesktop.org/pub/mesa/${version}/MesaLib-${version}.tar.bz2"; - sha256 = "0msk1fh4yw4yi7z37v75vhpa23z49lkwgin6drczbihbqsl6lx2p"; + sha256 = "1h451vgsfsp0h0wig66spqgxmjalsy28gvd9viynfwmq7741yw0y"; }; patches = [ ./swrast-settexbuffer.patch ]; - prePatch = "patchShebangs ."; + postPatch = '' + find . -name "*.py" -exec sed -i -e "s|#! */usr/bin/env python|#! ${python}/bin/python|" {} + + ''; -# r300 configureFlags = " --with-driver=dri --enable-gl-osmesa --enable-gles1" - + " --with-gallium-drivers=i915,i965,nouveau,r600,svga,swrast" - + " --enable-gles2 --enable-gallium-egl --disable-glx-tls" + + " --enable-gallium --enable-gallium-r600 --enable-gles2" + + " --enable-gallium-swrast --enable-gallium-egl --disable-glx-tls" + " --enable-xcb --enable-egl --disable-glut"; - buildInputs = [ expat libdrm libXxf86vm libXfixes libXdamage glproto dri2proto - libxml2Python libX11 libXext libxcb lipo libXt udev ]; - - buildNativeInputs = [ pkgconfig python makedepend file flex bison ]; + buildInputs = + [ pkgconfig expat x11 libdrm xlibs.makedepend xlibs.glproto + xlibs.libXxf86vm xlibs.libXfixes xlibs.libXdamage xlibs.dri2proto + lipo file python libxml2Python flex bison + ]; enableParallelBuilding = true;