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