gst_all_1.gst-plugins-bad: enable webrtc

At present, there are two blockers from using webrtc with
the gstreamer included by Nix. The first is that on Darwin,
the explicit WebRTC functionality is disabled, because at
time of adding, libnice did not work on Darwin. libnice does
now work on darwin, so we can re-enable it. The second is that
webrtc also needs sctp, which is provided by usrsctp. This
was disabled at authorship time because there was no nix
derivation. There now is, so it can be safely enabled.
This commit is contained in:
James Baker 2023-05-03 15:29:33 +01:00 committed by james.baker@helsing.ai
parent 52cd7a36de
commit 2c57ba1bd4
No known key found for this signature in database

View File

@ -90,6 +90,7 @@
, vo-aacenc
, libfreeaptx
, zxing-cpp
, usrsctp
, VideoToolbox
, AudioToolbox
, AVFoundation
@ -164,6 +165,7 @@ stdenv.mkDerivation rec {
libde265
libdvdnav
libdvdread
libnice
qrencode
libsndfile
libusb1
@ -192,6 +194,7 @@ stdenv.mkDerivation rec {
vo-aacenc
libfreeaptx
zxing-cpp
usrsctp
] ++ lib.optionals enableZbar [
zbar
] ++ lib.optionals faacSupport [
@ -219,7 +222,6 @@ stdenv.mkDerivation rec {
flite
libdrm
libgudev
libnice
sbc
spandsp
@ -273,7 +275,6 @@ stdenv.mkDerivation rec {
"-Dmusepack=disabled"
"-Dopenni2=disabled" # not packaged in nixpkgs as of writing
"-Dopensles=disabled" # not packaged in nixpkgs as of writing
"-Dsctp=disabled" # required `usrsctp` library not packaged in nixpkgs as of writing
"-Dsvthevcenc=disabled" # required `SvtHevcEnc` library not packaged in nixpkgs as of writing
"-Dteletext=disabled" # required `zvbi` library not packaged in nixpkgs as of writing
"-Dtinyalsa=disabled" # not packaged in nixpkgs as of writing
@ -307,7 +308,6 @@ stdenv.mkDerivation rec {
"-Duvch264=disabled" # requires gudev
"-Dv4l2codecs=disabled" # requires gudev
"-Dladspa=disabled" # requires lrdf
"-Dwebrtc=disabled" # requires libnice, which as of writing doesn't work on Darwin in nixpkgs
"-Dwildmidi=disabled" # see dependencies above
] ++ lib.optionals (!stdenv.isLinux || !stdenv.isx86_64) [
"-Dqsv=disabled" # Linux (and Windows) x86 only