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
57 lines
1.7 KiB
Nix
57 lines
1.7 KiB
Nix
{ stdenv, fetchurl, pkgconfig, python, gst-plugins-base, orc
|
|
, faacSupport ? false, faac ? null
|
|
, faad2, libass, libkate, libmms
|
|
, libmodplug, mpeg2dec, mpg123
|
|
, openjpeg, libopus, librsvg
|
|
, wildmidi, fluidsynth, libvdpau, wayland
|
|
, libwebp, xvidcore, gnutls
|
|
, mesa, libintlOrEmpty
|
|
}:
|
|
|
|
assert faacSupport -> faac != null;
|
|
|
|
let
|
|
inherit (stdenv.lib) optional optionalString;
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = "gst-plugins-bad-1.6.1";
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Gstreamer Bad Plugins";
|
|
homepage = "http://gstreamer.freedesktop.org";
|
|
longDescription = ''
|
|
a set of plug-ins that aren't up to par compared to the
|
|
rest. They might be close to being good quality, but they're missing
|
|
something - be it a good code review, some documentation, a set of tests,
|
|
a real live maintainer, or some actual wide use.
|
|
'';
|
|
license = licenses.lgpl2Plus;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ iyzsong ];
|
|
};
|
|
|
|
src = fetchurl {
|
|
url = "${meta.homepage}/src/gst-plugins-bad/${name}.tar.xz";
|
|
sha256 = "0rjla9zcal9b5ynagq7cscjs53qrd9bafjkjssrp8s2z2apsjxp1";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig python ];
|
|
|
|
buildInputs = [
|
|
gst-plugins-base orc
|
|
faad2 libass libkate libmms
|
|
libmodplug mpeg2dec mpg123
|
|
openjpeg libopus librsvg
|
|
fluidsynth libvdpau
|
|
libwebp xvidcore gnutls mesa
|
|
]
|
|
++ libintlOrEmpty
|
|
++ optional faacSupport faac
|
|
++ optional stdenv.isLinux wayland
|
|
# wildmidi requires apple's OpenAL
|
|
# TODO: package apple's OpenAL, fix wildmidi, include on Darwin
|
|
++ optional (!stdenv.isDarwin) wildmidi;
|
|
|
|
LDFLAGS = optionalString stdenv.isDarwin "-lintl";
|
|
}
|