Adding Mesa 7.9 as an option

svn path=/nixpkgs/trunk/; revision=25513
This commit is contained in:
Michael Raskin 2011-01-12 10:03:37 +00:00
parent 8dc9474e4d
commit 49ff7df6f1
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,36 @@
{ stdenv, fetchurl, pkgconfig, x11, xlibs, libdrm, expat, lipo ? null,
talloc, python, libxml2, libxml2Python}:
if ! stdenv.lib.lists.elem stdenv.system stdenv.lib.platforms.mesaPlatforms then
throw "unsupported platform for Mesa"
else
stdenv.mkDerivation rec {
version = "7.9";
name = "mesa-${version}";
src = fetchurl {
url = "ftp://ftp.freedesktop.org/pub/mesa/${version}/MesaLib-${version}.tar.bz2";
sha256 = "1wr927mdghn7w1cmp0bxswjda5s2x0hwfpf8zcc9x03da7s6gkg0";
};
configureFlags =
"--disable-gallium"
+ (if stdenv.system == "mips64-linux" then
" --with-dri-drivers=swrast --with-driver=dri" else "")
+ (if stdenv.isDarwin then " --disable-egl" else "");
buildInputs =
[ pkgconfig expat x11 libdrm xlibs.glproto
xlibs.libXxf86vm xlibs.libXfixes xlibs.libXdamage xlibs.dri2proto
lipo talloc python libxml2 libxml2Python
];
passthru = { inherit libdrm; };
meta = {
description = "An open source implementation of OpenGL";
homepage = http://www.mesa3d.org/;
license = "bsd";
};
}

View file

@ -3741,6 +3741,10 @@ let
mesa = callPackage ../development/libraries/mesa {
lipo = if stdenv.isDarwin then darwinLipoUtility else null;
};
mesa_7_9 = callPackage ../development/libraries/mesa/7.9.nix {
lipo = if stdenv.isDarwin then darwinLipoUtility else null;
};
metaEnvironment = recurseIntoAttrs (let callPackage = newScope pkgs.metaEnvironment; in rec {
sdfLibrary = callPackage ../development/libraries/sdf-library { aterm = aterm28; };