2008-10-08 18:56:52 +02:00
|
|
|
{stdenv, fetchurl, pkgconfig, x11, xlibs, libdrm, expat}:
|
2004-06-09 19:53:30 +02:00
|
|
|
|
2009-06-09 11:19:32 +02:00
|
|
|
if stdenv.system != "i686-linux" && stdenv.system != "x86_64-linux" && stdenv.system != "i686-darwin" then
|
2009-04-21 00:06:12 +02:00
|
|
|
throw "unsupported platform for Mesa"
|
|
|
|
else
|
2004-06-09 19:53:30 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2009-04-20 20:08:51 +02:00
|
|
|
name = "mesa-7.4.1";
|
2007-11-06 00:59:55 +01:00
|
|
|
|
2007-02-26 18:05:27 +01:00
|
|
|
src = fetchurl {
|
2009-04-20 20:08:51 +02:00
|
|
|
url = mirror://sourceforge/mesa3d/MesaLib-7.4.1.tar.bz2;
|
|
|
|
md5 = "423260578b653818ba66c2fcbde6d7ad";
|
2007-02-26 18:05:27 +01:00
|
|
|
};
|
2007-11-06 00:59:55 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
2008-10-08 18:56:52 +02:00
|
|
|
pkgconfig expat x11 libdrm xlibs.glproto
|
2009-04-20 20:46:32 +02:00
|
|
|
xlibs.libXxf86vm xlibs.libXfixes xlibs.libXdamage xlibs.dri2proto
|
2007-11-06 00:59:55 +01:00
|
|
|
];
|
|
|
|
|
2007-08-21 02:00:23 +02:00
|
|
|
passthru = {inherit libdrm;};
|
2007-11-06 00:59:55 +01:00
|
|
|
|
|
|
|
meta = {
|
2008-03-01 18:44:50 +01:00
|
|
|
description = "An open source implementation of OpenGL";
|
2007-11-06 00:59:55 +01:00
|
|
|
homepage = http://www.mesa3d.org/;
|
|
|
|
};
|
2004-06-09 19:53:30 +02:00
|
|
|
}
|