nixpkgs/pkgs/development/libraries/gstreamer/bad/default.nix

59 lines
1.7 KiB
Nix
Raw Normal View History

2013-12-23 15:36:37 +00:00
{ stdenv, fetchurl, pkgconfig, python, gst-plugins-base, orc
, faacSupport ? false, faac ? null
, faad2, libass, libkate, libmms
, libmodplug, mpeg2dec, mpg123
2013-12-23 15:36:37 +00:00
, openjpeg, libopus, librsvg
, wildmidi, fluidsynth, libvdpau, wayland
, libwebp, xvidcore, gnutls, mjpegtools
2015-04-09 02:54:51 +01:00
, mesa, libintlOrEmpty
2013-12-23 15:36:37 +00:00
}:
assert faacSupport -> faac != null;
2015-04-09 02:54:51 +01:00
let
inherit (stdenv.lib) optional optionalString;
in
2013-12-23 15:36:37 +00:00
stdenv.mkDerivation rec {
name = "gst-plugins-bad-1.8.2";
2013-12-23 15:36:37 +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;
2015-04-09 02:54:51 +01:00
platforms = platforms.unix;
2013-12-23 15:36:37 +00:00
};
src = fetchurl {
url = "${meta.homepage}/src/gst-plugins-bad/${name}.tar.xz";
sha256 = "d7995317530c8773ec088f94d9320909d41da61996b801ebacce9a56af493f97";
2013-12-23 15:36:37 +00:00
};
2016-04-24 13:39:30 +01:00
outputs = [ "dev" "out" ];
2013-12-23 15:36:37 +00:00
nativeBuildInputs = [ pkgconfig python ];
buildInputs = [
gst-plugins-base orc
faad2 libass libkate libmms
libmodplug mpeg2dec mpg123
2013-12-23 15:36:37 +00:00
openjpeg libopus librsvg
2015-04-09 02:54:51 +01:00
fluidsynth libvdpau
libwebp xvidcore gnutls mesa
mjpegtools
2015-04-09 02:54:51 +01: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
}