nixpkgs/pkgs/development/libraries/gstreamer/vaapi/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

93 lines
1.6 KiB
Nix
Raw Normal View History

{ lib, stdenv
2019-10-02 17:04:19 +00:00
, fetchurl
, meson
, ninja
, 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
, 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
, python3
# 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 {
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
};
outputs = [
"out"
"dev"
];
2016-04-24 12:39:30 +00:00
2019-10-02 17:04:19 +00:00
nativeBuildInputs = [
meson
ninja
pkg-config
python3
2019-10-02 17:04:19 +00:00
bzip2
wayland-scanner
] ++ 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
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
] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [
libGL
libGLU
];
2015-05-24 10:53:14 +00:00
2023-04-13 16:39:27 +00:00
strictDeps = true;
mesonFlags = [
"-Dexamples=disabled" # requires many dependencies and probably not useful for our users
(lib.mesonEnable "doc" enableDocumentation)
];
postPatch = ''
patchShebangs \
scripts/extract-release-date-from-doap-file.py
'';
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;
maintainers = [ ];
2015-05-24 10:53:14 +00:00
};
}