2015-10-28 13:15:44 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gst-plugins-base, bzip2, libva, wayland
|
2015-05-24 11:53:14 +01:00
|
|
|
, libdrm, udev, xorg, mesa, yasm, 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}";
|
2017-02-26 15:21:52 +00:00
|
|
|
version = "1.10.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";
|
2017-02-26 15:21:52 +00:00
|
|
|
sha256 = "0xfyf1mgcxnwf380wxv20hakl2srp34dmiw6bm4zkncl2mi91rh3";
|
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
|
|
|
|
2016-11-22 10:00:36 +00:00
|
|
|
nativeBuildInputs = [ 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
|
|
|
|
xorg.libICE mesa nasm libvpx python
|
2015-10-28 13:15:44 +00:00
|
|
|
];
|
2015-05-24 11:53:14 +01: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 = {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://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 ];
|
|
|
|
};
|
|
|
|
}
|