2018-03-31 13:37:29 -07:00
|
|
|
{ stdenv, fetchurl, meson, ninja, pkgconfig, python
|
|
|
|
, gst-plugins-base, orc, bzip2, gettext
|
2013-12-23 07:36:37 -08:00
|
|
|
, libv4l, libdv, libavc1394, libiec61883
|
2016-04-24 10:40:20 -07:00
|
|
|
, libvpx, speex, flac, taglib, libshout
|
2013-12-23 07:36:37 -08:00
|
|
|
, cairo, gdk_pixbuf, aalib, libcaca
|
2018-03-14 12:15:06 -07:00
|
|
|
, libsoup, libpulseaudio, libintl
|
2018-04-04 08:34:38 -07:00
|
|
|
, darwin, lame, mpg123, twolame
|
2018-04-04 08:43:36 -07:00
|
|
|
, gtkSupport ? false, gtk3 ? null
|
2019-01-22 03:57:56 -08:00
|
|
|
, libXdamage
|
|
|
|
, libXext
|
|
|
|
, libXfixes
|
2018-04-24 16:35:54 -07:00
|
|
|
, ncurses
|
2013-12-23 07:36:37 -08:00
|
|
|
}:
|
|
|
|
|
2018-04-04 08:43:36 -07:00
|
|
|
assert gtkSupport -> gtk3 != null;
|
|
|
|
|
2015-04-08 18:53:06 -07:00
|
|
|
let
|
2018-07-20 12:36:12 -07:00
|
|
|
inherit (stdenv.lib) optional optionals;
|
2015-04-08 18:53:06 -07:00
|
|
|
in
|
2013-12-23 07:36:37 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2018-08-30 04:29:46 -07:00
|
|
|
name = "gst-plugins-good-${version}";
|
2018-10-16 18:40:40 -07:00
|
|
|
version = "1.14.4";
|
2013-12-23 07:36:37 -08:00
|
|
|
|
2014-03-17 06:43:10 -07:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Gstreamer Good Plugins";
|
2017-09-16 12:28:31 -07:00
|
|
|
homepage = "https://gstreamer.freedesktop.org";
|
2014-03-17 06:43:10 -07:00
|
|
|
longDescription = ''
|
|
|
|
a set of plug-ins that we consider to have good quality code,
|
|
|
|
correct functionality, our preferred license (LGPL for the plug-in
|
|
|
|
code, LGPL or LGPL-compatible for the supporting library).
|
|
|
|
'';
|
|
|
|
license = licenses.lgpl2Plus;
|
2017-04-20 22:18:47 -07:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2018-04-24 16:35:54 -07:00
|
|
|
maintainers = with maintainers; [ matthewbauer ];
|
2013-12-23 07:36:37 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "${meta.homepage}/src/gst-plugins-good/${name}.tar.xz";
|
2018-10-16 18:40:40 -07:00
|
|
|
sha256 = "0y89qynb4b6fry3h43z1r99qslmi3m8xhlq0i5baq2nbc0r5b2sz";
|
2013-12-23 07:36:37 -08:00
|
|
|
};
|
|
|
|
|
2016-08-28 17:30:01 -07:00
|
|
|
outputs = [ "out" "dev" ];
|
2016-04-24 05:39:30 -07:00
|
|
|
|
2018-03-31 13:37:29 -07:00
|
|
|
patches = [ ./fix_pkgconfig_includedir.patch ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig python meson ninja gettext ];
|
2013-12-23 07:36:37 -08:00
|
|
|
|
2018-04-24 16:35:54 -07:00
|
|
|
NIX_LDFLAGS = "-lncurses";
|
|
|
|
|
2013-12-23 07:36:37 -08:00
|
|
|
buildInputs = [
|
|
|
|
gst-plugins-base orc bzip2
|
2015-04-08 18:53:06 -07:00
|
|
|
libdv libvpx speex flac taglib
|
2013-12-23 07:36:37 -08:00
|
|
|
cairo gdk_pixbuf aalib libcaca
|
2018-04-04 10:36:39 -07:00
|
|
|
libsoup libshout lame mpg123 twolame libintl
|
2019-01-22 03:57:56 -08:00
|
|
|
# TODO: Remove the comments once https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/commit/e234932dc703e51a0e1aa3b9c408f12758b12335
|
|
|
|
# is merged and available in nixpkgs.
|
|
|
|
libXdamage # present feature but undeclared in meson_options.txt, see https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/553
|
|
|
|
libXext # present feature but undeclared in meson_options.txt, see https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/553
|
|
|
|
libXfixes # present feature but undeclared in meson_options.txt, see https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/553
|
2018-04-24 16:35:54 -07:00
|
|
|
ncurses
|
2015-04-08 18:53:06 -07:00
|
|
|
]
|
2018-04-26 11:01:10 -07:00
|
|
|
++ optional gtkSupport gtk3 # for gtksink
|
2017-07-13 10:40:21 -07:00
|
|
|
++ optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Cocoa ]
|
2015-05-27 12:42:15 -07:00
|
|
|
++ optionals stdenv.isLinux [ libv4l libpulseaudio libavc1394 libiec61883 ];
|
2015-04-08 18:53:06 -07:00
|
|
|
|
2018-08-08 11:34:10 -07:00
|
|
|
# fails 1 tests with "Unexpected critical/warning: g_object_set_is_valid_property: object class 'GstRtpStorage' has no property named ''"
|
|
|
|
doCheck = false;
|
|
|
|
|
2013-12-23 07:36:37 -08:00
|
|
|
}
|