mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
libva: Make mesa optional
This commit is contained in:
parent
51444621cd
commit
5fb86ada5a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user