mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
8ccc115606
The egl library doesn't seem to work, i.e. the included demo program has undefined symbols after linking with it. svn path=/nixpkgs/trunk/; revision=21429
32 lines
831 B
Nix
32 lines
831 B
Nix
{ stdenv, fetchurl, pkgconfig, x11, xlibs, libdrm, expat, lipo ? null }:
|
|
|
|
if ! stdenv.lib.lists.elem stdenv.system stdenv.lib.platforms.mesaPlatforms then
|
|
throw "unsupported platform for Mesa"
|
|
else
|
|
|
|
stdenv.mkDerivation {
|
|
name = "mesa-7.6.1";
|
|
|
|
src = fetchurl {
|
|
url = ftp://ftp.freedesktop.org/pub/mesa/7.6.1/MesaLib-7.6.1.tar.bz2;
|
|
md5 = "7db4617e9e10ad3aca1b64339fd71b7d";
|
|
};
|
|
|
|
configureFlags = "--disable-gallium"
|
|
+ (if stdenv.isDarwin then " --disable-egl" else "");
|
|
|
|
buildInputs =
|
|
[ pkgconfig expat x11 libdrm xlibs.glproto
|
|
xlibs.libXxf86vm xlibs.libXfixes xlibs.libXdamage xlibs.dri2proto
|
|
lipo
|
|
];
|
|
|
|
passthru = { inherit libdrm; };
|
|
|
|
meta = {
|
|
description = "An open source implementation of OpenGL";
|
|
homepage = http://www.mesa3d.org/;
|
|
license = "bsd";
|
|
};
|
|
}
|