2008-10-08 16:56:52 +00:00
|
|
|
{stdenv, fetchurl, pkgconfig, x11, xlibs, libdrm, expat}:
|
2004-06-09 17:53:30 +00:00
|
|
|
|
2007-02-27 00:18:34 +00: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 14:49:28 +00:00
|
|
|
abort "unsupported platform for Mesa"; # !!! change to throw, remove all the mesa asserts in all-packages.nix
|
2007-02-27 00:18:34 +00:00
|
|
|
|
|
|
|
in
|
2004-06-09 17:53:30 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2009-04-20 18:08:51 +00: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 18:08:51 +00: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 16:56:52 +00:00
|
|
|
pkgconfig expat x11 libdrm xlibs.glproto
|
2009-04-20 18:46:32 +00:00
|
|
|
xlibs.libXxf86vm xlibs.libXfixes xlibs.libXdamage xlibs.dri2proto
|
2007-11-05 23:59:55 +00:00
|
|
|
];
|
|
|
|
|
2007-08-21 00:00:23 +00: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 17:53:30 +00:00
|
|
|
}
|