2009-10-29 18:19:25 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, x11, xlibs, libdrm, expat }:
|
2004-06-09 19:53:30 +02:00
|
|
|
|
2009-10-09 15:57:20 +02:00
|
|
|
if stdenv.system != "i686-linux" && stdenv.system != "x86_64-linux" && stdenv.system != "i686-darwin" && stdenv.system != "i686-freebsd" 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-10-29 18:19:25 +01:00
|
|
|
name = "mesa-7.5.2";
|
2007-11-06 00:59:55 +01:00
|
|
|
|
2007-02-26 18:05:27 +01:00
|
|
|
src = fetchurl {
|
2009-10-29 18:19:25 +01:00
|
|
|
url = ftp://ftp.freedesktop.org/pub/mesa/7.5.2/MesaLib-7.5.2.tar.bz2;
|
|
|
|
md5 = "94e47a499f1226803869c2e37a6a8e3a";
|
2007-02-26 18:05:27 +01:00
|
|
|
};
|
2007-11-06 00:59:55 +01:00
|
|
|
|
2009-10-29 18:19:25 +01:00
|
|
|
buildInputs =
|
|
|
|
[ pkgconfig expat x11 libdrm xlibs.glproto
|
|
|
|
xlibs.libXxf86vm xlibs.libXfixes xlibs.libXdamage xlibs.dri2proto
|
|
|
|
];
|
2007-11-06 00:59:55 +01:00
|
|
|
|
2009-10-29 18:19:25 +01: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/;
|
2009-10-29 18:19:25 +01:00
|
|
|
license = "bsd";
|
2007-11-06 00:59:55 +01:00
|
|
|
};
|
2004-06-09 19:53:30 +02:00
|
|
|
}
|