@@ -6,6 +6,9 @@
66, libsoup, libpulseaudio, libintl
77, darwin, lame, mpg123, twolame
88, gtkSupport ? false, gtk3 ? null
9+# As of writing, jack2 incurs a Qt dependency (big!) via `ffado`.
10+# In the fuure we should probably split `ffado`.
11+, enableJack ? false
912, libXdamage
1013, libXext
1114, libXfixes
@@ -23,7 +26,7 @@ let
2326in
2427stdenv.mkDerivation rec {
2528 name = "gst-plugins-good-${version}";
26− version = "1.15.1";
29+ version = "1.16.0";
2730
2831 meta = with stdenv.lib; {
2932 description = "Gstreamer Good Plugins";
@@ -40,7 +43,7 @@ stdenv.mkDerivation rec {
4043
4144 src = fetchurl {
4245 url = "${meta.homepage}/src/gst-plugins-good/${name}.tar.xz";
43− sha256 = "15f6klr7wg6jlcyx0qspi13s8wmc9fij1bx1bbvy90a9a72v97rb";
46+ sha256 = "1zdhif1mhf0ihkjpjyrh65g2iz2cawkjjb3h5w8h9ml06grxwjk5";
4447 };
4548
4649 outputs = [ "out" "dev" ];
@@ -56,19 +59,20 @@ stdenv.mkDerivation rec {
5659 libdv libvpx speex flac taglib
5760 cairo gdk_pixbuf aalib libcaca
5861 libsoup libshout lame mpg123 twolame libintl
59− # TODO: Remove the comments once https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/commit/e234932dc703e51a0e1aa3b9c408f12758b12335
60− # is merged and available in nixpkgs.
61− libXdamage # present feature but undeclared in meson_options.txt, see https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/553
62− libXext # present feature but undeclared in meson_options.txt, see https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/553
63− libXfixes # present feature but undeclared in meson_options.txt, see https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/553
62+ libXdamage
63+ libXext
64+ libXfixes
6465 ncurses
65− xorg.libXfixes # present feature but undeclared in meson_options.txt, see https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/553
66− xorg.libXdamage # present feature but undeclared in meson_options.txt, see https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/553
66+ xorg.libXfixes
67+ xorg.libXdamage
6768 wavpack
6869 ]
6970 ++ optional gtkSupport gtk3 # for gtksink
7071 ++ optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Cocoa ]
71− ++ optionals stdenv.isLinux [ libv4l libpulseaudio libavc1394 libiec61883 libgudev jack2 ];
72+ ++ optionals stdenv.isLinux [ libv4l libpulseaudio libavc1394 libiec61883 libgudev jack2 ]
73+ ++ optionals (stdenv.isLinux && enableJack) [
74+ jack2
75+ ];
7276
7377 mesonFlags = [
7478 # Enables all features, so that we know when new dependencies are necessary.
@@ -77,7 +81,7 @@ stdenv.mkDerivation rec {
7781 "-Dqt5=disabled" # not clear as of writing how to correctly pass in the required qt5 deps
7882 ]
7983 ++ optional (!gtkSupport) "-Dgtk3=disabled"
80− ++ optionals (!stdenv.isLinux) [
84+ ++ optionals (!stdenv.isLinux || !enableJack) [
8185 "-Djack=disabled" # unclear whether Jack works on Darwin
8286 ]
8387 ++ optionals (!stdenv.isLinux) [