virglrenderer: expose and enable va-api option by default
Closes: https://github.com/NixOS/nixpkgs/issues/300897
This commit is contained in:
parent
cb1f3bcd8b
commit
ebda6b8f90
1 changed files with 9 additions and 2 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue