84bc6d64ba
(And while at it, gst-vaapi 0.6.0 -> 0.6.1.) * gst-editing-services grew additional build time dependencies, flex and perl. * gst-libav switched from libav to ffmpeg as "libav" provider, see http://gstreamer.freedesktop.org/releases/1.6/. Without using ffmpeg, one may hit issues such as this (which I initially did): (gst-plugin-scanner:19751): GStreamer-WARNING **: Failed to load plugin '/nix/store/0wgpq2yx9wrkp2mh4rn1c7zbiq2bqa2l-gst-libav-1.6.1/lib/gstreamer-1.0/libgstlibav.so': /nix/store/0wgpq2yx9wrkp2mh4rn1c7zbiq2bqa2l-gst-libav-1.6.1/lib/gstreamer-1.0/libgstlibav.so: undefined symbol: av_frame_get_sample_rate
32 lines
1.1 KiB
Nix
32 lines
1.1 KiB
Nix
{ stdenv, fetchurl, pkgconfig, gst-plugins-base, bzip2, libva
|
|
, libdrm, udev, xorg, mesa, yasm, gstreamer, gst-plugins-bad, nasm
|
|
, libvpx
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "gst-vaapi-${version}";
|
|
version = "0.6.1";
|
|
|
|
src = fetchurl {
|
|
url = "${meta.homepage}/software/vaapi/releases/gstreamer-vaapi/gstreamer-vaapi-${version}.tar.bz2";
|
|
sha256 = "1cv7zlz5wj6b3acv0pr5cq5wqzd5vcs1lrrlvyl9wrzcnzz8mz1n";
|
|
};
|
|
|
|
nativeBuildInputs = with stdenv.lib; [ pkgconfig bzip2 ];
|
|
|
|
buildInputs = with stdenv.lib; [ gstreamer gst-plugins-base gst-plugins-bad libva libdrm udev
|
|
xorg.libX11 xorg.libXext xorg.libXv xorg.libXrandr xorg.libSM xorg.libICE mesa nasm libvpx ];
|
|
|
|
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 ];
|
|
};
|
|
}
|