2015-10-28 14:15:44 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gst-plugins-base, bzip2, libva, wayland
|
2018-02-24 14:12:44 +01:00
|
|
|
, libdrm, udev, xorg, libGLU_combined, yasm, gstreamer, gst-plugins-bad, nasm
|
2016-11-22 11:00:36 +01:00
|
|
|
, libvpx, python
|
2015-05-24 12:53:14 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gst-vaapi-${version}";
|
2017-12-18 17:17:50 +01:00
|
|
|
version = "1.12.4";
|
2015-05-24 12:53:14 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-11-22 11:00:36 +01:00
|
|
|
url = "${meta.homepage}/src/gstreamer-vaapi/gstreamer-vaapi-${version}.tar.xz";
|
2017-12-18 17:17:50 +01:00
|
|
|
sha256 = "1jg9nvc8000yi2bcl3wn2yh2hwl7yvlwldj6778w8c0z5qj7fb8w";
|
2015-05-24 12:53:14 +02:00
|
|
|
};
|
|
|
|
|
2016-08-29 02:30:01 +02:00
|
|
|
outputs = [ "out" "dev" ];
|
2016-04-24 14:39:30 +02:00
|
|
|
|
2016-11-22 11:00:36 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig bzip2 ];
|
2015-05-24 12:53:14 +02:00
|
|
|
|
2015-10-28 14:15:44 +01:00
|
|
|
buildInputs = [
|
|
|
|
gstreamer gst-plugins-base gst-plugins-bad libva wayland libdrm udev
|
2016-11-22 11:00:36 +01:00
|
|
|
xorg.libX11 xorg.libXext xorg.libXv xorg.libXrandr xorg.libSM
|
2018-02-24 14:12:44 +01:00
|
|
|
xorg.libICE libGLU_combined nasm libvpx python
|
2015-10-28 14:15:44 +01:00
|
|
|
];
|
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 = {
|
2017-09-16 21:28:31 +02:00
|
|
|
homepage = https://gstreamer.freedesktop.org;
|
2015-05-24 12:53:14 +02:00
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ tstrobel ];
|
|
|
|
};
|
|
|
|
}
|