2015-10-28 14:15:44 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gst-plugins-base, bzip2, libva, wayland
|
2015-05-24 12:53:14 +02:00
|
|
|
, libdrm, udev, xorg, mesa, yasm, gstreamer, gst-plugins-bad, nasm
|
|
|
|
, libvpx
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gst-vaapi-${version}";
|
2016-04-24 19:40:20 +02:00
|
|
|
version = "0.7.0";
|
2015-05-24 12:53:14 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "${meta.homepage}/software/vaapi/releases/gstreamer-vaapi/gstreamer-vaapi-${version}.tar.bz2";
|
2016-04-24 19:40:20 +02:00
|
|
|
sha256 = "14jal2g5mf8r59w8420ixl3kg50vcmy56446ncwd0xrizd6yms5b";
|
2015-05-24 12:53:14 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = with stdenv.lib; [ pkgconfig bzip2 ];
|
|
|
|
|
2015-10-28 14:15:44 +01: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 mesa nasm libvpx
|
|
|
|
];
|
2015-05-24 12:53:14 +02: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 = {
|
|
|
|
homepage = "http://www.freedesktop.org";
|
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ tstrobel ];
|
|
|
|
};
|
|
|
|
}
|