libva: Make mesa optional

This commit is contained in:
William A. Kennington III 2015-03-28 13:52:03 -07:00
parent 51444621cd
commit 5fb86ada5a

View File

@ -1,4 +1,6 @@
{ stdenv, fetchurl, libX11, pkgconfig, libXext, mesa, libdrm, libXfixes, wayland, libffi }:
{ stdenv, fetchurl, libX11, pkgconfig, libXext, libdrm, libXfixes, wayland, libffi
, mesa ? null
}:
stdenv.mkDerivation rec {
name = "libva-1.5.1";
@ -8,9 +10,9 @@ stdenv.mkDerivation rec {
sha256 = "01d01mm9fgpwzqycmjjcj3in3vvzcibi3f64icsw2sksmmgb4495";
};
buildInputs = [ libX11 libXext pkgconfig mesa libdrm libXfixes wayland libffi ];
buildInputs = [ libX11 libXext pkgconfig libdrm libXfixes wayland libffi mesa ];
configureFlags = [ "--enable-glx" ];
configureFlags = stdenv.lib.optional (mesa != null) "--enable-glx";
meta = with stdenv.lib; {
homepage = http://www.freedesktop.org/wiki/Software/vaapi;