virglrenderer: expose and enable va-api option by default

Closes: https://github.com/NixOS/nixpkgs/issues/300897
This commit is contained in:
Sergei Trofimovich 2024-04-02 09:31:35 +01:00
parent cb1f3bcd8b
commit ebda6b8f90

View file

@ -1,5 +1,7 @@
{ lib, stdenv, fetchurl, meson, ninja, pkg-config, python3
, libGLU, libepoxy, libX11, libdrm, mesa, gitUpdater
, libGLU, libepoxy, libX11, libdrm, mesa
, vaapiSupport ? true, libva
, gitUpdater
}:
stdenv.mkDerivation rec {
@ -13,10 +15,15 @@ stdenv.mkDerivation rec {
separateDebugInfo = true;
buildInputs = [ libGLU libepoxy libX11 libdrm mesa ];
buildInputs = [ libGLU libepoxy libX11 libdrm mesa ]
++ lib.optionals vaapiSupport [ libva ];
nativeBuildInputs = [ meson ninja pkg-config python3 ];
mesonFlags= [
(lib.mesonBool "video" vaapiSupport)
];
passthru = {
updateScript = gitUpdater {
url = "https://gitlab.freedesktop.org/virgl/virglrenderer.git";