From b4da951ec277047419df3369dd6d16e25971b60e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 31 May 2023 15:02:51 +0200 Subject: [PATCH] vaapiIntel: add enableGui option, adopt to SuperSandro2000 --- pkgs/development/libraries/vaapi-intel/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/libraries/vaapi-intel/default.nix b/pkgs/development/libraries/vaapi-intel/default.nix index 2a9f0cf74032..5622ad158f91 100644 --- a/pkgs/development/libraries/vaapi-intel/default.nix +++ b/pkgs/development/libraries/vaapi-intel/default.nix @@ -1,6 +1,7 @@ { lib, stdenv, fetchFromGitHub, autoreconfHook, gnum4, pkg-config, python3 -, intel-gpu-tools, libdrm, libva, libX11, libGL, wayland, libXext +, intel-gpu-tools, libdrm, libva , enableHybridCodec ? false, vaapi-intel-hybrid +, enableGui ? true, libX11, libGL, wayland, libXext }: stdenv.mkDerivation rec { @@ -22,13 +23,14 @@ stdenv.mkDerivation rec { ''; configureFlags = [ - "--enable-x11" - "--enable-wayland" + (lib.enableFeature enableGui "x11") + (lib.enableFeature enableGui "wayland") ] ++ lib.optional enableHybridCodec "--enable-hybrid-codec"; nativeBuildInputs = [ autoreconfHook gnum4 pkg-config python3 ]; - buildInputs = [ intel-gpu-tools libdrm libva libX11 libXext libGL wayland ] + buildInputs = [ intel-gpu-tools libdrm libva ] + ++ lib.optionals enableGui [ libX11 libXext libGL wayland ] ++ lib.optional enableHybridCodec vaapi-intel-hybrid; enableParallelBuilding = true; @@ -48,6 +50,6 @@ stdenv.mkDerivation rec { backends for each supported hardware vendor. ''; platforms = [ "x86_64-linux" "i686-linux" ]; - maintainers = with maintainers; [ ]; + maintainers = with maintainers; [ SuperSandro2000 ]; }; }