gst_all_1.gst-plugins-bad: make openh264 optional
This fixes building gst-plugins-bad for RISC-V, where openh264 is unavailable.
This commit is contained in:
@@ -59,6 +59,7 @@
|
||||
, neon
|
||||
, openal
|
||||
, openexr_3
|
||||
, openh264Support ? lib.meta.availableOn stdenv.hostPlatform openh264
|
||||
, openh264
|
||||
, libopenmpt
|
||||
, pango
|
||||
@@ -175,7 +176,6 @@ stdenv.mkDerivation rec {
|
||||
neon
|
||||
openal
|
||||
openexr_3
|
||||
openh264
|
||||
rtmpdump
|
||||
pango
|
||||
soundtouch
|
||||
@@ -211,6 +211,8 @@ stdenv.mkDerivation rec {
|
||||
bluez
|
||||
] ++ lib.optionals microdnsSupport [
|
||||
libmicrodns
|
||||
] ++ lib.optionals openh264Support [
|
||||
openh264
|
||||
] ++ lib.optionals (gst-plugins-base.waylandEnabled && stdenv.isLinux) [
|
||||
libva # vaapi requires libva -> libdrm -> libpciaccess, which is Linux-only in nixpkgs
|
||||
wayland
|
||||
@@ -300,6 +302,7 @@ stdenv.mkDerivation rec {
|
||||
"-Daja=disabled" # should pass libajantv2 via aja-sdk-dir instead
|
||||
"-Dmicrodns=${if microdnsSupport then "enabled" else "disabled"}"
|
||||
"-Dbluez=${if bluezSupport then "enabled" else "disabled"}"
|
||||
(lib.mesonEnable "openh264" openh264Support)
|
||||
(lib.mesonEnable "doc" enableDocumentation)
|
||||
]
|
||||
++ lib.optionals (!stdenv.isLinux) [
|
||||
|
||||
Reference in New Issue
Block a user