2018-03-31 22:20:34 +01:00
|
|
|
{ stdenv, fetchurl, meson, ninja, pkgconfig, gst-plugins-base, bzip2, libva, wayland
|
2018-07-21 01:44:44 +01:00
|
|
|
, libdrm, udev, xorg, libGLU_combined, gstreamer, gst-plugins-bad, nasm
|
2016-11-22 10:00:36 +00:00
|
|
|
, libvpx, python
|
2015-05-24 11:53:14 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gst-vaapi-${version}";
|
2018-10-17 02:41:47 +01:00
|
|
|
version = "1.14.4";
|
2015-05-24 11:53:14 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-11-22 10:00:36 +00:00
|
|
|
url = "${meta.homepage}/src/gstreamer-vaapi/gstreamer-vaapi-${version}.tar.xz";
|
2018-10-17 02:41:47 +01:00
|
|
|
sha256 = "18yha6119v7mwz47idv2vykzfssqfmh6hc824wqqsshwjvzdn66f";
|
2015-05-24 11:53:14 +01:00
|
|
|
};
|
|
|
|
|
2016-08-29 01:30:01 +01:00
|
|
|
outputs = [ "out" "dev" ];
|
2016-04-24 13:39:30 +01:00
|
|
|
|
2018-03-31 22:20:34 +01:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig bzip2 ];
|
2015-05-24 11:53:14 +01:00
|
|
|
|
2015-10-28 13:15:44 +00:00
|
|
|
buildInputs = [
|
|
|
|
gstreamer gst-plugins-base gst-plugins-bad libva wayland libdrm udev
|
2016-11-22 10:00:36 +00:00
|
|
|
xorg.libX11 xorg.libXext xorg.libXv xorg.libXrandr xorg.libSM
|
2018-02-24 13:12:44 +00:00
|
|
|
xorg.libICE libGLU_combined nasm libvpx python
|
2015-10-28 13:15:44 +00:00
|
|
|
];
|
2015-05-24 11:53:14 +01:00
|
|
|
|
2018-03-31 22:20:34 +01:00
|
|
|
preConfigure = ''
|
2015-05-24 11:53:14 +01:00
|
|
|
export GST_PLUGIN_PATH_1_0=$out/lib/gstreamer-1.0
|
|
|
|
mkdir -p $GST_PLUGIN_PATH_1_0
|
2018-03-31 22:20:34 +01:00
|
|
|
'';
|
2015-05-24 11:53:14 +01:00
|
|
|
|
|
|
|
meta = {
|
2017-09-16 20:28:31 +01:00
|
|
|
homepage = https://gstreamer.freedesktop.org;
|
2015-05-24 11:53:14 +01:00
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ tstrobel ];
|
|
|
|
};
|
|
|
|
}
|