2018-03-31 21:03:18 +00:00
|
|
|
{ stdenv, fetchurl, fetchpatch, meson, ninja, gettext
|
|
|
|
, pkgconfig, python, gst-plugins-base, orc
|
2014-04-07 13:37:02 +00:00
|
|
|
, faacSupport ? false, faac ? null
|
|
|
|
, faad2, libass, libkate, libmms
|
2018-04-04 15:44:23 +00:00
|
|
|
, libmodplug, mpeg2dec
|
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
|
2018-03-14 19:15:06 +00:00
|
|
|
, libGLU_combined, libintl, libgme
|
2016-09-04 19:44:15 +00:00
|
|
|
, openssl, x265, libxml2
|
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
|
2018-04-26 18:01:10 +00:00
|
|
|
inherit (stdenv.lib) optional;
|
2015-04-09 01:54:51 +00:00
|
|
|
in
|
2013-12-23 15:36:37 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-30 19:10:30 +00:00
|
|
|
name = "gst-plugins-bad-1.14.0";
|
2013-12-23 15:36:37 +00:00
|
|
|
|
2014-03-17 13:31:45 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Gstreamer Bad Plugins";
|
2017-09-16 19:28:31 +00:00
|
|
|
homepage = "https://gstreamer.freedesktop.org";
|
2014-03-17 13:31:45 +00:00
|
|
|
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;
|
2018-02-23 18:34:26 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2018-04-24 23:35:54 +00:00
|
|
|
maintainers = with maintainers; [ matthewbauer ];
|
2013-12-23 15:36:37 +00:00
|
|
|
};
|
|
|
|
|
2018-03-31 21:03:18 +00:00
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs .
|
2017-11-20 06:48:40 +00:00
|
|
|
'';
|
|
|
|
|
2018-03-31 21:03:18 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://bug794856.bugzilla-attachments.gnome.org/attachment.cgi?id=370409";
|
|
|
|
sha256 = "0hy0rcn35alq65yqwri4fqjz2hf3nyyg5c7rnndk51msmqjxpprk";
|
|
|
|
})
|
|
|
|
./fix_pkgconfig_includedir.patch
|
|
|
|
];
|
|
|
|
|
2013-12-23 15:36:37 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "${meta.homepage}/src/gst-plugins-bad/${name}.tar.xz";
|
2018-03-30 19:10:30 +00:00
|
|
|
sha256 = "17sgzgx1c54k5rzz7ljyz3is0n7yj56k74vv05h8z1gjnsnjnppd";
|
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
|
|
|
|
2018-03-31 21:03:18 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig python gettext ];
|
2013-12-23 15:36:37 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gst-plugins-base orc
|
2018-04-04 15:43:36 +00:00
|
|
|
faad2 libass libkate libmms
|
2018-04-04 15:44:23 +00:00
|
|
|
libmodplug mpeg2dec
|
2013-12-23 15:36:37 +00:00
|
|
|
openjpeg libopus librsvg
|
2015-04-09 01:54:51 +00:00
|
|
|
fluidsynth libvdpau
|
2018-02-24 13:12:44 +00:00
|
|
|
libwebp xvidcore gnutls libGLU_combined
|
2018-02-23 18:34:26 +00:00
|
|
|
libgme openssl x265 libxml2
|
2018-03-14 19:15:06 +00:00
|
|
|
libintl
|
2015-04-09 01:54:51 +00:00
|
|
|
]
|
|
|
|
++ optional faacSupport faac
|
|
|
|
++ optional stdenv.isLinux wayland
|
|
|
|
# wildmidi requires apple's OpenAL
|
|
|
|
# TODO: package apple's OpenAL, fix wildmidi, include on Darwin
|
2018-02-23 18:34:26 +00:00
|
|
|
++ optional (!stdenv.isDarwin) wildmidi
|
|
|
|
# TODO: mjpegtools uint64_t is not compatible with guint64 on Darwin
|
|
|
|
++ optional (!stdenv.isDarwin) mjpegtools;
|
2015-04-09 01:54:51 +00:00
|
|
|
|
2017-12-06 06:54:33 +00:00
|
|
|
enableParallelBuilding = true;
|
2018-04-25 03:20:18 +00:00
|
|
|
|
|
|
|
doCheck = false; # fails 20 out of 58 tests, expensive
|
|
|
|
|
2013-12-23 15:36:37 +00:00
|
|
|
}
|