2015-10-28 06:15:44 -07:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gst-plugins-base, bzip2, libva, wayland
|
2015-05-24 03:53:14 -07:00
|
|
|
, libdrm, udev, xorg, mesa, yasm, 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 {
|
|
|
|
name = "gst-vaapi-${version}";
|
2016-12-07 05:49:24 -08:00
|
|
|
version = "1.10.2";
|
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";
|
2016-12-07 05:49:24 -08:00
|
|
|
sha256 = "1abzaj9kczap1xmalgzid1k3gqcn1ghnn76cn2kclc1gbfwd4ccy";
|
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
|
|
|
|
2016-11-22 02:00:36 -08:00
|
|
|
nativeBuildInputs = [ 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
|
|
|
|
xorg.libICE mesa nasm libvpx python
|
2015-10-28 06:15:44 -07:00
|
|
|
];
|
2015-05-24 03:53:14 -07:00
|
|
|
|
|
|
|
preConfigure = "
|
|
|
|
export GST_PLUGIN_PATH_1_0=$out/lib/gstreamer-1.0
|
|
|
|
mkdir -p $GST_PLUGIN_PATH_1_0
|
|
|
|
";
|
|
|
|
configureFlags = "--disable-builtin-libvpx --with-gstreamer-api=1.0";
|
|
|
|
|
|
|
|
meta = {
|
2016-11-22 02:00:36 -08:00
|
|
|
homepage = "http://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 ];
|
|
|
|
};
|
|
|
|
}
|