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
|
2019-05-22 04:03:39 -07: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-05-01 07:10:36 -07:00
|
|
|
# As of writing, jack2 incurs a Qt dependency (big!) via `ffado`.
|
|
|
|
# In the fuure we should probably split `ffado`.
|
|
|
|
, enableJack ? false
|
2019-01-22 03:57:56 -08:00
|
|
|
, libXdamage
|
|
|
|
, libXext
|
|
|
|
, libXfixes
|
2018-04-24 16:35:54 -07:00
|
|
|
, ncurses
|
2019-01-20 17:48:04 -08:00
|
|
|
, xorg
|
|
|
|
, libgudev
|
|
|
|
, wavpack
|
|
|
|
, jack2
|
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}";
|
2019-05-01 07:10:36 -07:00
|
|
|
version = "1.16.0";
|
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";
|
2019-05-01 07:10:36 -07:00
|
|
|
sha256 = "1zdhif1mhf0ihkjpjyrh65g2iz2cawkjjb3h5w8h9ml06grxwjk5";
|
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
|
2019-05-22 04:03:39 -07:00
|
|
|
cairo gdk-pixbuf aalib libcaca
|
2018-04-04 10:36:39 -07:00
|
|
|
libsoup libshout lame mpg123 twolame libintl
|
2019-05-01 07:10:36 -07:00
|
|
|
libXdamage
|
|
|
|
libXext
|
|
|
|
libXfixes
|
2018-04-24 16:35:54 -07:00
|
|
|
ncurses
|
2019-05-01 07:10:36 -07:00
|
|
|
xorg.libXfixes
|
|
|
|
xorg.libXdamage
|
2019-01-20 17:48:04 -08:00
|
|
|
wavpack
|
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 ]
|
2019-06-22 16:56:39 -07:00
|
|
|
++ optionals stdenv.isLinux [ libv4l libpulseaudio libavc1394 libiec61883 libgudev ]
|
2019-05-01 07:10:36 -07:00
|
|
|
++ optionals (stdenv.isLinux && enableJack) [
|
|
|
|
jack2
|
|
|
|
];
|
2019-01-20 17:48:04 -08:00
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
# Enables all features, so that we know when new dependencies are necessary.
|
|
|
|
"-Dauto_features=enabled"
|
|
|
|
"-Dexamples=disabled" # requires many dependencies and probably not useful for our users
|
|
|
|
"-Dqt5=disabled" # not clear as of writing how to correctly pass in the required qt5 deps
|
|
|
|
]
|
|
|
|
++ optional (!gtkSupport) "-Dgtk3=disabled"
|
2019-05-01 07:10:36 -07:00
|
|
|
++ optionals (!stdenv.isLinux || !enableJack) [
|
2019-01-20 17:48:04 -08:00
|
|
|
"-Djack=disabled" # unclear whether Jack works on Darwin
|
|
|
|
]
|
|
|
|
++ optionals (!stdenv.isLinux) [
|
|
|
|
"-Dv4l2-gudev=disabled"
|
|
|
|
];
|
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
|
|
|
}
|