2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv
|
2019-10-02 17:04:19 +00:00
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2019-10-02 17:04:19 +00:00
|
|
|
, gst-plugins-base
|
|
|
|
, bzip2
|
|
|
|
, libva
|
|
|
|
, wayland
|
2023-04-13 16:39:27 +00:00
|
|
|
, wayland-protocols
|
2024-08-29 11:13:18 +00:00
|
|
|
, wayland-scanner
|
2019-10-02 17:04:19 +00:00
|
|
|
, libdrm
|
|
|
|
, udev
|
|
|
|
, xorg
|
2019-11-10 16:44:34 +00:00
|
|
|
, libGLU
|
|
|
|
, libGL
|
2019-10-02 17:04:19 +00:00
|
|
|
, gstreamer
|
|
|
|
, gst-plugins-bad
|
|
|
|
, nasm
|
|
|
|
, libvpx
|
2020-10-01 22:31:58 +00:00
|
|
|
, python3
|
2023-04-18 23:23:00 +00:00
|
|
|
# Checks meson.is_cross_build(), so even canExecute isn't enough.
|
|
|
|
, enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform, hotdoc
|
2015-05-24 10:53:14 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-10-02 16:59:16 +00:00
|
|
|
pname = "gstreamer-vaapi";
|
2024-09-02 15:50:17 +00:00
|
|
|
version = "1.24.7";
|
2015-05-24 10:53:14 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-03-04 20:01:51 +00:00
|
|
|
url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz";
|
2024-09-02 15:50:17 +00:00
|
|
|
hash = "sha256-OqXtnX9LWny2DYsDcNmD1ZOV3lRu52cEQBGA/Q/V7oY=";
|
2015-05-24 10:53:14 +00:00
|
|
|
};
|
|
|
|
|
2020-10-01 22:31:58 +00:00
|
|
|
outputs = [
|
|
|
|
"out"
|
|
|
|
"dev"
|
|
|
|
];
|
2016-04-24 12:39:30 +00:00
|
|
|
|
2019-10-02 17:04:19 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2023-04-07 23:53:08 +00:00
|
|
|
python3
|
2019-10-02 17:04:19 +00:00
|
|
|
bzip2
|
2024-08-29 11:13:18 +00:00
|
|
|
wayland-scanner
|
2023-04-18 23:23:00 +00:00
|
|
|
] ++ lib.optionals enableDocumentation [
|
2023-04-13 16:39:27 +00:00
|
|
|
hotdoc
|
2019-10-02 17:04:19 +00:00
|
|
|
];
|
2015-05-24 10:53:14 +00:00
|
|
|
|
2015-10-28 13:15:44 +00:00
|
|
|
buildInputs = [
|
2019-10-02 17:04:19 +00:00
|
|
|
gstreamer
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-bad
|
|
|
|
libva
|
|
|
|
wayland
|
2023-04-13 16:39:27 +00:00
|
|
|
wayland-protocols
|
2019-10-02 17:04:19 +00:00
|
|
|
libdrm
|
|
|
|
udev
|
|
|
|
xorg.libX11
|
|
|
|
xorg.libXext
|
|
|
|
xorg.libXv
|
|
|
|
xorg.libXrandr
|
|
|
|
xorg.libSM
|
|
|
|
xorg.libICE
|
|
|
|
nasm
|
|
|
|
libvpx
|
2023-05-28 14:07:02 +00:00
|
|
|
] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
|
|
|
|
libGL
|
|
|
|
libGLU
|
2015-10-28 13:15:44 +00:00
|
|
|
];
|
2015-05-24 10:53:14 +00:00
|
|
|
|
2023-04-13 16:39:27 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2019-01-21 01:48:04 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dexamples=disabled" # requires many dependencies and probably not useful for our users
|
2023-04-18 23:23:00 +00:00
|
|
|
(lib.mesonEnable "doc" enableDocumentation)
|
2019-01-21 01:48:04 +00:00
|
|
|
];
|
|
|
|
|
2020-10-01 22:31:58 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs \
|
|
|
|
scripts/extract-release-date-from-doap-file.py
|
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2019-10-02 17:04:19 +00:00
|
|
|
description = "Set of VAAPI GStreamer Plug-ins";
|
|
|
|
homepage = "https://gstreamer.freedesktop.org";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.linux;
|
2024-07-28 14:44:11 +00:00
|
|
|
maintainers = [ ];
|
2015-05-24 10:53:14 +00:00
|
|
|
};
|
|
|
|
}
|