2013-12-23 15:36:37 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, python, gst-plugins-base, orc
|
2014-04-07 13:37:02 +00:00
|
|
|
, faacSupport ? false, faac ? null
|
|
|
|
, faad2, libass, libkate, libmms
|
2014-08-30 09:23:50 +00:00
|
|
|
, libmodplug, mpeg2dec, mpg123
|
2013-12-23 15:36:37 +00:00
|
|
|
, openjpeg, libopus, librsvg
|
2014-04-29 09:15:10 +00:00
|
|
|
, wildmidi, fluidsynth, libvdpau, wayland
|
2016-04-21 14:13:05 +00:00
|
|
|
, libwebp, xvidcore, gnutls, mjpegtools
|
2017-04-13 10:43:06 +00:00
|
|
|
, mesa, libintlOrEmpty, libgme
|
2013-12-23 15:36:37 +00:00
|
|
|
}:
|
|
|
|
|
2014-04-07 13:37:02 +00:00
|
|
|
assert faacSupport -> faac != null;
|
|
|
|
|
2015-04-09 01:54:51 +00:00
|
|
|
let
|
|
|
|
inherit (stdenv.lib) optional optionalString;
|
|
|
|
in
|
2013-12-23 15:36:37 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2017-02-26 15:21:52 +00:00
|
|
|
name = "gst-plugins-bad-1.10.4";
|
2013-12-23 15:36:37 +00:00
|
|
|
|
2014-03-17 13:31:45 +00:00
|
|
|
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;
|
2016-09-01 17:39:33 +00:00
|
|
|
platforms = platforms.linux;
|
2013-12-23 15:36:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "${meta.homepage}/src/gst-plugins-bad/${name}.tar.xz";
|
2017-02-26 15:21:52 +00:00
|
|
|
sha256 = "0rk9rlzf2b0hjw5hwbadz53yh4ls7vm3w3cshsa3n8isdd8axp93";
|
2013-12-23 15:36:37 +00:00
|
|
|
};
|
|
|
|
|
2016-08-29 00:30:01 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
2016-04-24 12:39:30 +00:00
|
|
|
|
2013-12-23 15:36:37 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig python ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gst-plugins-base orc
|
2014-04-07 13:37:02 +00:00
|
|
|
faad2 libass libkate libmms
|
2014-11-01 15:38:06 +00:00
|
|
|
libmodplug mpeg2dec mpg123
|
2013-12-23 15:36:37 +00:00
|
|
|
openjpeg libopus librsvg
|
2015-04-09 01:54:51 +00:00
|
|
|
fluidsynth libvdpau
|
2014-11-01 15:38:06 +00:00
|
|
|
libwebp xvidcore gnutls mesa
|
2017-04-13 10:43:06 +00:00
|
|
|
mjpegtools libgme
|
2015-04-09 01:54:51 +00:00
|
|
|
]
|
|
|
|
++ 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";
|
2013-12-23 15:36:37 +00:00
|
|
|
}
|