2024-10-27 12:58:00 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
autoreconfHook,
|
|
|
|
gnum4,
|
|
|
|
pkg-config,
|
|
|
|
python3,
|
|
|
|
wayland-scanner,
|
|
|
|
intel-gpu-tools,
|
|
|
|
libdrm,
|
|
|
|
libva,
|
|
|
|
libX11,
|
|
|
|
libGL,
|
|
|
|
wayland,
|
|
|
|
libXext,
|
|
|
|
enableHybridCodec ? false,
|
|
|
|
vaapi-intel-hybrid,
|
|
|
|
enableGui ? true,
|
2024-10-27 13:19:21 +00:00
|
|
|
nix-update-script,
|
2015-05-05 12:41:54 +00:00
|
|
|
}:
|
2013-01-28 23:31:35 +00:00
|
|
|
|
2024-10-27 13:08:14 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "intel-vaapi-driver";
|
2024-11-07 14:42:42 +00:00
|
|
|
version = "2.4.1-unstable-2024-10-29";
|
2013-06-03 04:01:12 +00:00
|
|
|
|
2017-12-15 21:10:12 +00:00
|
|
|
src = fetchFromGitHub {
|
2024-10-27 12:58:00 +00:00
|
|
|
owner = "intel";
|
|
|
|
repo = "intel-vaapi-driver";
|
2024-11-07 14:42:42 +00:00
|
|
|
rev = "fd727a4e9cb8b2878a1e93d4dddc8dd1c1a4e0ea";
|
|
|
|
hash = "sha256-OMFdRjzpUKdxB9eK/1OLYLaOC3NHnzZVxmh6yKrbYoE=";
|
2013-01-28 23:31:35 +00:00
|
|
|
};
|
|
|
|
|
2020-07-12 12:29:18 +00:00
|
|
|
# Set the correct install path:
|
|
|
|
LIBVA_DRIVERS_PATH = "${placeholder "out"}/lib/dri";
|
2013-01-28 23:31:35 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
postInstall = lib.optionalString enableHybridCodec ''
|
2018-06-27 20:15:52 +00:00
|
|
|
ln -s ${vaapi-intel-hybrid}/lib/dri/* $out/lib/dri/
|
|
|
|
'';
|
|
|
|
|
2015-05-05 12:41:54 +00:00
|
|
|
configureFlags = [
|
2023-05-31 13:02:51 +00:00
|
|
|
(lib.enableFeature enableGui "x11")
|
|
|
|
(lib.enableFeature enableGui "wayland")
|
2021-01-21 17:00:13 +00:00
|
|
|
] ++ lib.optional enableHybridCodec "--enable-hybrid-codec";
|
2015-05-05 12:41:54 +00:00
|
|
|
|
2024-08-05 19:19:26 +00:00
|
|
|
nativeBuildInputs = [
|
2024-10-27 12:58:00 +00:00
|
|
|
autoreconfHook
|
|
|
|
gnum4
|
|
|
|
pkg-config
|
|
|
|
python3
|
|
|
|
wayland-scanner
|
2024-08-05 19:19:26 +00:00
|
|
|
];
|
2015-05-05 12:41:54 +00:00
|
|
|
|
2024-10-27 12:58:00 +00:00
|
|
|
buildInputs =
|
|
|
|
[
|
|
|
|
intel-gpu-tools
|
|
|
|
libdrm
|
|
|
|
libva
|
|
|
|
]
|
|
|
|
++ lib.optionals enableGui [
|
|
|
|
libX11
|
|
|
|
libXext
|
|
|
|
libGL
|
|
|
|
wayland
|
|
|
|
]
|
2021-01-21 17:00:13 +00:00
|
|
|
++ lib.optional enableHybridCodec vaapi-intel-hybrid;
|
2015-05-05 12:41:54 +00:00
|
|
|
|
2017-12-15 21:10:12 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2024-10-27 13:19:21 +00:00
|
|
|
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://01.org/linuxmedia";
|
2014-08-04 06:22:16 +00:00
|
|
|
license = licenses.mit;
|
2020-07-12 12:29:18 +00:00
|
|
|
description = "VA-API user mode driver for Intel GEN Graphics family";
|
|
|
|
longDescription = ''
|
|
|
|
This VA-API video driver backend provides a bridge to the GEN GPUs through
|
|
|
|
the packaging of buffers and commands to be sent to the i915 driver for
|
|
|
|
exercising both hardware and shader functionality for video decode,
|
|
|
|
encode, and processing.
|
|
|
|
VA-API is an open-source library and API specification, which provides
|
|
|
|
access to graphics hardware acceleration capabilities for video
|
|
|
|
processing. It consists of a main library and driver-specific acceleration
|
|
|
|
backends for each supported hardware vendor.
|
|
|
|
'';
|
2024-10-27 12:58:00 +00:00
|
|
|
platforms = [
|
|
|
|
"x86_64-linux"
|
|
|
|
"i686-linux"
|
|
|
|
];
|
2023-05-31 13:02:51 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2013-01-28 23:31:35 +00:00
|
|
|
};
|
|
|
|
}
|