2018-03-31 14:20:34 -07:00
|
|
|
{ stdenv, fetchurl, meson, ninja, pkgconfig, gst-plugins-base, bzip2, libva, wayland
|
2018-07-20 17:44:44 -07:00
|
|
|
, libdrm, udev, xorg, libGLU_combined, gstreamer, gst-plugins-bad, nasm
|
2016-11-22 02:00:36 -08:00
|
|
|
, libvpx, python
|
2015-05-24 03:53:14 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "gst-vaapi";
|
2019-05-01 07:10:36 -07:00
|
|
|
version = "1.16.0";
|
2015-05-24 03:53:14 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-11-22 02:00:36 -08:00
|
|
|
url = "${meta.homepage}/src/gstreamer-vaapi/gstreamer-vaapi-${version}.tar.xz";
|
2019-05-01 07:10:36 -07:00
|
|
|
sha256 = "07qpynamiz0lniqajcaijh3n7ixs4lfk9a5mfk50sng0dricwzsf";
|
2015-05-24 03:53:14 -07:00
|
|
|
};
|
|
|
|
|
2016-08-28 17:30:01 -07:00
|
|
|
outputs = [ "out" "dev" ];
|
2016-04-24 05:39:30 -07:00
|
|
|
|
2018-03-31 14:20:34 -07:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig bzip2 ];
|
2015-05-24 03:53:14 -07:00
|
|
|
|
2015-10-28 06:15:44 -07:00
|
|
|
buildInputs = [
|
|
|
|
gstreamer gst-plugins-base gst-plugins-bad libva wayland libdrm udev
|
2016-11-22 02:00:36 -08:00
|
|
|
xorg.libX11 xorg.libXext xorg.libXv xorg.libXrandr xorg.libSM
|
2018-02-24 05:12:44 -08:00
|
|
|
xorg.libICE libGLU_combined nasm libvpx python
|
2015-10-28 06:15:44 -07:00
|
|
|
];
|
2015-05-24 03:53:14 -07:00
|
|
|
|
2018-03-31 14:20:34 -07:00
|
|
|
preConfigure = ''
|
2015-05-24 03:53:14 -07:00
|
|
|
export GST_PLUGIN_PATH_1_0=$out/lib/gstreamer-1.0
|
|
|
|
mkdir -p $GST_PLUGIN_PATH_1_0
|
2018-03-31 14:20:34 -07:00
|
|
|
'';
|
2015-05-24 03:53:14 -07:00
|
|
|
|
2019-01-20 17:48:04 -08:00
|
|
|
mesonFlags = [
|
|
|
|
# Enables all features, so that we know when new dependencies are necessary.
|
|
|
|
"-Dauto_features=enabled"
|
|
|
|
"-Dexamples=disabled" # requires many dependencies and probably not useful for our users
|
|
|
|
];
|
|
|
|
|
2015-05-24 03:53:14 -07:00
|
|
|
meta = {
|
2017-09-16 12:28:31 -07:00
|
|
|
homepage = https://gstreamer.freedesktop.org;
|
2015-05-24 03:53:14 -07:00
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ tstrobel ];
|
|
|
|
};
|
|
|
|
}
|