2008-10-08 12:56:52 -04:00
|
|
|
{stdenv, fetchurl, pkgconfig, x11, xlibs, libdrm, expat}:
|
2004-06-09 13:53:30 -04:00
|
|
|
|
2007-02-26 19:18:34 -05: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 10:49:28 -04:00
|
|
|
abort "unsupported platform for Mesa"; # !!! change to throw, remove all the mesa asserts in all-packages.nix
|
2007-02-26 19:18:34 -05:00
|
|
|
|
|
|
|
in
|
2004-06-09 13:53:30 -04:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2009-04-20 14:08:51 -04:00
|
|
|
name = "mesa-7.4.1";
|
2007-11-05 18:59:55 -05:00
|
|
|
|
2007-02-26 12:05:27 -05:00
|
|
|
src = fetchurl {
|
2009-04-20 14:08:51 -04:00
|
|
|
url = mirror://sourceforge/mesa3d/MesaLib-7.4.1.tar.bz2;
|
|
|
|
md5 = "423260578b653818ba66c2fcbde6d7ad";
|
2007-02-26 12:05:27 -05:00
|
|
|
};
|
2007-11-05 18:59:55 -05:00
|
|
|
|
|
|
|
buildInputs = [
|
2008-10-08 12:56:52 -04:00
|
|
|
pkgconfig expat x11 libdrm xlibs.glproto
|
2009-04-20 14:46:32 -04:00
|
|
|
xlibs.libXxf86vm xlibs.libXfixes xlibs.libXdamage xlibs.dri2proto
|
2007-11-05 18:59:55 -05:00
|
|
|
];
|
|
|
|
|
2007-08-20 20:00:23 -04:00
|
|
|
passthru = {inherit libdrm;};
|
2007-11-05 18:59:55 -05:00
|
|
|
|
|
|
|
meta = {
|
2008-03-01 12:44:50 -05:00
|
|
|
description = "An open source implementation of OpenGL";
|
2007-11-05 18:59:55 -05:00
|
|
|
homepage = http://www.mesa3d.org/;
|
|
|
|
};
|
2004-06-09 13:53:30 -04:00
|
|
|
}
|