gst_all_1.gst-plugins-rs: add withGtkPlugins option

This commit is contained in:
Sandro Jäckel 2024-05-25 01:22:37 +02:00
parent 93a707cfe2
commit 70ec3a3c0f
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -29,6 +29,7 @@
, nix-update-script
# specifies a limited subset of plugins to build (the default `null` means all plugins supported on the stdenv platform)
, plugins ? null
, withGtkPlugins ? true
# Checks meson.is_cross_build(), so even canExecute isn't enough.
, enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform && plugins == null
, hotdoc
@ -114,7 +115,7 @@ let
"reqwest" # tests hang on darwin
"threadshare" # tests cannot bind to localhost on darwin
"webp" # not supported on darwin (upstream crate issue)
] ++ lib.optionals (!gst-plugins-base.glEnabled) [
] ++ lib.optionals (!gst-plugins-base.glEnabled || !withGtkPlugins) [
# these require gstreamer-gl
"gtk4"
"livesync"