2019-10-02 18:04:19 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkgconfig
|
|
|
|
, gst-plugins-base
|
|
|
|
, bzip2
|
|
|
|
, libva
|
|
|
|
, wayland
|
|
|
|
, libdrm
|
|
|
|
, udev
|
|
|
|
, xorg
|
2019-11-10 16:44:34 +00:00
|
|
|
, libGLU
|
|
|
|
, libGL
|
2019-10-02 18:04:19 +01:00
|
|
|
, gstreamer
|
|
|
|
, gst-plugins-bad
|
|
|
|
, nasm
|
|
|
|
, libvpx
|
2020-10-01 23:31:58 +01:00
|
|
|
, python3
|
2015-05-24 11:53:14 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-10-02 17:59:16 +01:00
|
|
|
pname = "gstreamer-vaapi";
|
2020-12-07 01:15:03 +00:00
|
|
|
version = "1.18.2";
|
2015-05-24 11:53:14 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-10-02 17:59:16 +01:00
|
|
|
url = "${meta.homepage}/src/${pname}/${pname}-${version}.tar.xz";
|
2020-12-07 01:15:03 +00:00
|
|
|
sha256 = "1h67n7wk1297rzynknbyv44gdacblvkcvb37x8yxi5d0zms2qywc";
|
2015-05-24 11:53:14 +01:00
|
|
|
};
|
|
|
|
|
2020-10-01 23:31:58 +01:00
|
|
|
outputs = [
|
|
|
|
"out"
|
|
|
|
"dev"
|
|
|
|
# "devdoc" # disabled until `hotdoc` is packaged in nixpkgs
|
|
|
|
];
|
2016-04-24 13:39:30 +01:00
|
|
|
|
2019-10-02 18:04:19 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
bzip2
|
2020-10-01 23:31:58 +01:00
|
|
|
|
|
|
|
# documentation
|
|
|
|
# TODO add hotdoc here
|
2019-10-02 18:04:19 +01:00
|
|
|
];
|
2015-05-24 11:53:14 +01:00
|
|
|
|
2015-10-28 13:15:44 +00:00
|
|
|
buildInputs = [
|
2019-10-02 18:04:19 +01:00
|
|
|
gstreamer
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-bad
|
|
|
|
libva
|
|
|
|
wayland
|
|
|
|
libdrm
|
|
|
|
udev
|
|
|
|
xorg.libX11
|
|
|
|
xorg.libXext
|
|
|
|
xorg.libXv
|
|
|
|
xorg.libXrandr
|
|
|
|
xorg.libSM
|
|
|
|
xorg.libICE
|
2019-11-10 16:44:34 +00:00
|
|
|
libGL
|
|
|
|
libGLU
|
2019-10-02 18:04:19 +01:00
|
|
|
nasm
|
|
|
|
libvpx
|
2020-10-01 23:31:58 +01:00
|
|
|
python3
|
2015-10-28 13:15:44 +00:00
|
|
|
];
|
2015-05-24 11:53:14 +01:00
|
|
|
|
2019-01-21 01:48:04 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dexamples=disabled" # requires many dependencies and probably not useful for our users
|
2020-10-01 23:31:58 +01:00
|
|
|
"-Ddoc=disabled" # `hotdoc` not packaged in nixpkgs as of writing
|
2019-01-21 01:48:04 +00:00
|
|
|
];
|
|
|
|
|
2020-10-01 23:31:58 +01:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs \
|
|
|
|
scripts/extract-release-date-from-doap-file.py
|
|
|
|
'';
|
|
|
|
|
2019-10-02 18:04:19 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Set of VAAPI GStreamer Plug-ins";
|
|
|
|
homepage = "https://gstreamer.freedesktop.org";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with maintainers; [ tstrobel ];
|
|
|
|
platforms = platforms.linux;
|
2015-05-24 11:53:14 +01:00
|
|
|
};
|
|
|
|
}
|