81047829ea
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
85 lines
1.5 KiB
Nix
85 lines
1.5 KiB
Nix
{ lib, stdenv
|
|
, fetchurl
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, gst-plugins-base
|
|
, bzip2
|
|
, libva
|
|
, wayland
|
|
, libdrm
|
|
, udev
|
|
, xorg
|
|
, libGLU
|
|
, libGL
|
|
, gstreamer
|
|
, gst-plugins-bad
|
|
, nasm
|
|
, libvpx
|
|
, python3
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gstreamer-vaapi";
|
|
version = "1.20.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz";
|
|
sha256 = "sha256-95pHNG39XlheBj53B45fxJiwbe6JW/y/R9iGP8rJ6jI=";
|
|
};
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
# "devdoc" # disabled until `hotdoc` is packaged in nixpkgs
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
bzip2
|
|
|
|
# documentation
|
|
# TODO add hotdoc here
|
|
];
|
|
|
|
buildInputs = [
|
|
gstreamer
|
|
gst-plugins-base
|
|
gst-plugins-bad
|
|
libva
|
|
wayland
|
|
libdrm
|
|
udev
|
|
xorg.libX11
|
|
xorg.libXext
|
|
xorg.libXv
|
|
xorg.libXrandr
|
|
xorg.libSM
|
|
xorg.libICE
|
|
libGL
|
|
libGLU
|
|
nasm
|
|
libvpx
|
|
python3
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Dexamples=disabled" # requires many dependencies and probably not useful for our users
|
|
"-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing
|
|
];
|
|
|
|
postPatch = ''
|
|
patchShebangs \
|
|
scripts/extract-release-date-from-doap-file.py
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Set of VAAPI GStreamer Plug-ins";
|
|
homepage = "https://gstreamer.freedesktop.org";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = with maintainers; [ tstrobel ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|