2008-10-08 09:56:52 -07:00
|
|
|
{stdenv, fetchurl, pkgconfig, x11, xlibs, libdrm, expat}:
|
2004-06-09 10:53:30 -07:00
|
|
|
|
2007-02-26 16:18:34 -08:00
|
|
|
let
|
|
|
|
|
|
|
|
target =
|
|
|
|
if stdenv.system == "i686-linux" then "linux-dri-x86" else
|
|
|
|
if stdenv.system == "x86_64-linux" then "linux-dri-x86-64" else
|
2007-05-16 07:49:28 -07:00
|
|
|
abort "unsupported platform for Mesa"; # !!! change to throw, remove all the mesa asserts in all-packages.nix
|
2007-02-26 16:18:34 -08:00
|
|
|
|
|
|
|
in
|
2004-06-09 10:53:30 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2008-10-08 09:56:52 -07:00
|
|
|
name = "mesa-7.2";
|
2007-11-05 15:59:55 -08:00
|
|
|
|
2007-02-26 09:05:27 -08:00
|
|
|
src = fetchurl {
|
2008-10-08 09:56:52 -07:00
|
|
|
url = mirror://sourceforge/mesa3d/MesaLib-7.2.tar.bz2;
|
|
|
|
md5 = "04d379292e023df0b0266825cb0dbde5";
|
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
|
|
|
|
xlibs.libXxf86vm xlibs.libXfixes xlibs.libXdamage
|
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
|
|
|
}
|