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

86 lines
1.4 KiB
Nix
Raw Normal View History

2019-10-02 17:04:19 +00: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 17:04:19 +00:00
, gstreamer
, gst-plugins-bad
, nasm
, libvpx
, python3
2015-05-24 10:53:14 +00:00
}:
stdenv.mkDerivation rec {
2019-10-02 16:59:16 +00:00
pname = "gstreamer-vaapi";
2020-12-07 01:15:03 +00:00
version = "1.18.2";
2015-05-24 10:53:14 +00:00
src = fetchurl {
2019-10-02 16:59:16 +00:00
url = "${meta.homepage}/src/${pname}/${pname}-${version}.tar.xz";
2020-12-07 01:15:03 +00:00
sha256 = "1h67n7wk1297rzynknbyv44gdacblvkcvb37x8yxi5d0zms2qywc";
2015-05-24 10:53:14 +00:00
};
outputs = [
"out"
"dev"
# "devdoc" # disabled until `hotdoc` is packaged in nixpkgs
];
2016-04-24 12:39:30 +00:00
2019-10-02 17:04:19 +00:00
nativeBuildInputs = [
meson
ninja
pkgconfig
bzip2
# documentation
# TODO add hotdoc here
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
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 17:04:19 +00:00
nasm
libvpx
python3
];
2015-05-24 10:53:14 +00:00
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
'';
2019-10-02 17:04:19 +00: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 10:53:14 +00:00
};
}