2018-03-31 22:37:29 +02:00
|
|
|
{ stdenv, fetchurl, meson, ninja, pkgconfig, python
|
|
|
|
, gst-plugins-base, orc, bzip2, gettext
|
2013-12-23 16:36:37 +01:00
|
|
|
, libv4l, libdv, libavc1394, libiec61883
|
2016-04-24 19:40:20 +02:00
|
|
|
, libvpx, speex, flac, taglib, libshout
|
2013-12-23 16:36:37 +01:00
|
|
|
, cairo, gdk_pixbuf, aalib, libcaca
|
2018-03-14 20:15:06 +01:00
|
|
|
, libsoup, libpulseaudio, libintl
|
2018-04-04 17:34:38 +02:00
|
|
|
, darwin, lame, mpg123, twolame
|
2018-04-04 17:43:36 +02:00
|
|
|
, gtkSupport ? false, gtk3 ? null
|
2018-04-25 01:35:54 +02:00
|
|
|
, ncurses
|
2013-12-23 16:36:37 +01:00
|
|
|
}:
|
|
|
|
|
2018-04-04 17:43:36 +02:00
|
|
|
assert gtkSupport -> gtk3 != null;
|
|
|
|
|
2015-04-09 03:53:06 +02:00
|
|
|
let
|
2018-07-20 21:36:12 +02:00
|
|
|
inherit (stdenv.lib) optional optionals;
|
2015-04-09 03:53:06 +02:00
|
|
|
in
|
2013-12-23 16:36:37 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-30 21:09:57 +02:00
|
|
|
name = "gst-plugins-good-1.14.0";
|
2013-12-23 16:36:37 +01:00
|
|
|
|
2014-03-17 14:43:10 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Gstreamer Good Plugins";
|
2017-09-16 21:28:31 +02:00
|
|
|
homepage = "https://gstreamer.freedesktop.org";
|
2014-03-17 14:43:10 +01: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-21 07:18:47 +02:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2018-04-25 01:35:54 +02:00
|
|
|
maintainers = with maintainers; [ matthewbauer ];
|
2013-12-23 16:36:37 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "${meta.homepage}/src/gst-plugins-good/${name}.tar.xz";
|
2018-03-30 21:09:57 +02:00
|
|
|
sha256 = "1226s30cf7pqg3fj8shd20l7sp93yw9sqplgxns3m3ajgms3byka";
|
2013-12-23 16:36:37 +01:00
|
|
|
};
|
|
|
|
|
2016-08-29 02:30:01 +02:00
|
|
|
outputs = [ "out" "dev" ];
|
2016-04-24 14:39:30 +02:00
|
|
|
|
2018-03-31 22:37:29 +02:00
|
|
|
patches = [ ./fix_pkgconfig_includedir.patch ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig python meson ninja gettext ];
|
2013-12-23 16:36:37 +01:00
|
|
|
|
2018-04-25 01:35:54 +02:00
|
|
|
NIX_LDFLAGS = "-lncurses";
|
|
|
|
|
2013-12-23 16:36:37 +01:00
|
|
|
buildInputs = [
|
|
|
|
gst-plugins-base orc bzip2
|
2015-04-09 03:53:06 +02:00
|
|
|
libdv libvpx speex flac taglib
|
2013-12-23 16:36:37 +01:00
|
|
|
cairo gdk_pixbuf aalib libcaca
|
2018-04-04 19:36:39 +02:00
|
|
|
libsoup libshout lame mpg123 twolame libintl
|
2018-04-25 01:35:54 +02:00
|
|
|
ncurses
|
2015-04-09 03:53:06 +02:00
|
|
|
]
|
2018-04-26 20:01:10 +02:00
|
|
|
++ optional gtkSupport gtk3 # for gtksink
|
2017-07-13 19:40:21 +02:00
|
|
|
++ optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Cocoa ]
|
2015-05-27 21:42:15 +02:00
|
|
|
++ optionals stdenv.isLinux [ libv4l libpulseaudio libavc1394 libiec61883 ];
|
2015-04-09 03:53:06 +02:00
|
|
|
|
2018-08-08 20:34:10 +02: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 16:36:37 +01:00
|
|
|
}
|