summary refs log tree commit diff
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2017-07-01 04:47:32 +0200
committerJan Tojnar <jtojnar@gmail.com>2017-07-17 16:50:09 +0200
commit0edae74119d5353dea7898f245e824c52ac48513 (patch)
tree8055131c58a1d00d8652b07cd340b67cd2f5597c
parent50831d543d37bb2953386922c6b5c7488f9028ba (diff)
downloadnixlib-0edae74119d5353dea7898f245e824c52ac48513.tar
nixlib-0edae74119d5353dea7898f245e824c52ac48513.tar.gz
nixlib-0edae74119d5353dea7898f245e824c52ac48513.tar.bz2
nixlib-0edae74119d5353dea7898f245e824c52ac48513.tar.lz
nixlib-0edae74119d5353dea7898f245e824c52ac48513.tar.xz
nixlib-0edae74119d5353dea7898f245e824c52ac48513.tar.zst
nixlib-0edae74119d5353dea7898f245e824c52ac48513.zip
gst_all_1.gst-plugins-bad: allow building gtksink plugin
Corebird requires gtksink gstreamer plugin to play videos. [1] The plugin,
however, is only built when GTK is available.

This patch adds gtk3 as an optional dependency to gst_all_1.gst-plugins-bad
package, allowing the build of gtksink.

[1]: https://github.com/baedert/corebird/issues/431
-rw-r--r--pkgs/development/libraries/gstreamer/bad/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/libraries/gstreamer/bad/default.nix b/pkgs/development/libraries/gstreamer/bad/default.nix
index 4efef2582118..69378d95a301 100644
--- a/pkgs/development/libraries/gstreamer/bad/default.nix
+++ b/pkgs/development/libraries/gstreamer/bad/default.nix
@@ -1,5 +1,6 @@
 { stdenv, fetchurl, pkgconfig, python, gst-plugins-base, orc
 , faacSupport ? false, faac ? null
+, gtkSupport ? false, gtk3 ? null
 , faad2, libass, libkate, libmms
 , libmodplug, mpeg2dec, mpg123
 , openjpeg, libopus, librsvg
@@ -10,6 +11,7 @@
 }:
 
 assert faacSupport -> faac != null;
+assert gtkSupport -> gtk3 != null;
 
 let
   inherit (stdenv.lib) optional optionalString;
@@ -41,7 +43,7 @@ stdenv.mkDerivation rec {
 
   buildInputs = [
     gst-plugins-base orc
-    faad2 libass libkate libmms
+    faad2 gtk3 libass libkate libmms
     libmodplug mpeg2dec mpg123
     openjpeg libopus librsvg
     fluidsynth libvdpau
@@ -50,6 +52,8 @@ stdenv.mkDerivation rec {
   ]
     ++ libintlOrEmpty
     ++ optional faacSupport faac
+    # for gtksink
+    ++ optional gtkSupport gtk3
     ++ optional stdenv.isLinux wayland
     # wildmidi requires apple's OpenAL
     # TODO: package apple's OpenAL, fix wildmidi, include on Darwin