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

50 lines
1.6 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, meson, ninja, pkgconfig, gst-plugins-base, bzip2, libva, wayland
, libdrm, udev, xorg, libGLU_combined, gstreamer, gst-plugins-bad, nasm
, libvpx, python, fetchpatch
2015-05-24 10:53:14 +00:00
}:
stdenv.mkDerivation rec {
pname = "gst-vaapi";
version = "1.16.0";
2015-05-24 10:53:14 +00:00
src = fetchurl {
url = "${meta.homepage}/src/gstreamer-vaapi/gstreamer-vaapi-${version}.tar.xz";
sha256 = "07qpynamiz0lniqajcaijh3n7ixs4lfk9a5mfk50sng0dricwzsf";
2015-05-24 10:53:14 +00:00
};
patches = [
# See: https://mail.gnome.org/archives/distributor-list/2019-September/msg00000.html
# Note that the patch has now been actually accepted upstream.
(fetchpatch {
url = "https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/commit/a90daabb84f983d2fa05ff3159f7ad59aa648b55.patch";
sha256 = "0p2qygq6b5h6nxjdfnlzbsyih43hjq5c94ag8sbyyb8pmnids9rb";
})
];
outputs = [ "out" "dev" ];
2016-04-24 12:39:30 +00:00
nativeBuildInputs = [ meson ninja pkgconfig bzip2 ];
2015-05-24 10:53:14 +00:00
buildInputs = [
gstreamer gst-plugins-base gst-plugins-bad libva wayland libdrm udev
xorg.libX11 xorg.libXext xorg.libXv xorg.libXrandr xorg.libSM
xorg.libICE libGLU_combined nasm libvpx python
];
2015-05-24 10:53:14 +00:00
preConfigure = ''
2015-05-24 10:53:14 +00:00
export GST_PLUGIN_PATH_1_0=$out/lib/gstreamer-1.0
mkdir -p $GST_PLUGIN_PATH_1_0
'';
2015-05-24 10:53:14 +00:00
mesonFlags = [
"-Dexamples=disabled" # requires many dependencies and probably not useful for our users
];
2015-05-24 10:53:14 +00:00
meta = {
2017-09-16 19:28:31 +00:00
homepage = https://gstreamer.freedesktop.org;
2015-05-24 10:53:14 +00:00
license = stdenv.lib.licenses.lgpl21Plus;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ tstrobel ];
};
}