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