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