forked from mirrors/nixpkgs
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
This commit is contained in:
parent
50831d543d
commit
0edae74119
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
{ stdenv, fetchurl, pkgconfig, python, gst-plugins-base, orc
|
{ stdenv, fetchurl, pkgconfig, python, gst-plugins-base, orc
|
||||||
, faacSupport ? false, faac ? null
|
, faacSupport ? false, faac ? null
|
||||||
|
, gtkSupport ? false, gtk3 ? null
|
||||||
, faad2, libass, libkate, libmms
|
, faad2, libass, libkate, libmms
|
||||||
, libmodplug, mpeg2dec, mpg123
|
, libmodplug, mpeg2dec, mpg123
|
||||||
, openjpeg, libopus, librsvg
|
, openjpeg, libopus, librsvg
|
||||||
|
@ -10,6 +11,7 @@
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert faacSupport -> faac != null;
|
assert faacSupport -> faac != null;
|
||||||
|
assert gtkSupport -> gtk3 != null;
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (stdenv.lib) optional optionalString;
|
inherit (stdenv.lib) optional optionalString;
|
||||||
|
@ -41,7 +43,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
gst-plugins-base orc
|
gst-plugins-base orc
|
||||||
faad2 libass libkate libmms
|
faad2 gtk3 libass libkate libmms
|
||||||
libmodplug mpeg2dec mpg123
|
libmodplug mpeg2dec mpg123
|
||||||
openjpeg libopus librsvg
|
openjpeg libopus librsvg
|
||||||
fluidsynth libvdpau
|
fluidsynth libvdpau
|
||||||
|
@ -50,6 +52,8 @@ stdenv.mkDerivation rec {
|
||||||
]
|
]
|
||||||
++ libintlOrEmpty
|
++ libintlOrEmpty
|
||||||
++ optional faacSupport faac
|
++ optional faacSupport faac
|
||||||
|
# for gtksink
|
||||||
|
++ optional gtkSupport gtk3
|
||||||
++ optional stdenv.isLinux wayland
|
++ optional stdenv.isLinux wayland
|
||||||
# wildmidi requires apple's OpenAL
|
# wildmidi requires apple's OpenAL
|
||||||
# TODO: package apple's OpenAL, fix wildmidi, include on Darwin
|
# TODO: package apple's OpenAL, fix wildmidi, include on Darwin
|
||||||
|
|
Loading…
Add table
Reference in a new issue