mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 19:43:30 +00:00
gst_all_1.gst-plugins-base: disable introspection if unavailable
This commit is contained in:
parent
4b7982e09d
commit
b64a75b72f
@ -19,6 +19,8 @@
|
||||
, libvisual
|
||||
, tremor # provides 'virbisidec'
|
||||
, libGL
|
||||
, withIntrospection ? lib.meta.availableOn stdenv.hostPlatform gobject-introspection && stdenv.hostPlatform.emulatorAvailable buildPackages
|
||||
, buildPackages
|
||||
, gobject-introspection
|
||||
, enableX11 ? stdenv.isLinux
|
||||
, libXext
|
||||
@ -73,6 +75,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
orc
|
||||
glib
|
||||
gstreamer
|
||||
] ++ lib.optionals withIntrospection [
|
||||
gobject-introspection
|
||||
] ++ lib.optionals enableDocumentation [
|
||||
hotdoc
|
||||
@ -119,6 +122,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"-Dexamples=disabled" # requires many dependencies and probably not useful for our users
|
||||
# See https://github.com/GStreamer/gst-plugins-base/blob/d64a4b7a69c3462851ff4dcfa97cc6f94cd64aef/meson_options.txt#L15 for a list of choices
|
||||
"-Dgl_winsys=${lib.concatStringsSep "," (lib.optional enableX11 "x11" ++ lib.optional enableWayland "wayland" ++ lib.optional enableCocoa "cocoa")}"
|
||||
(lib.mesonEnable "introspection" withIntrospection)
|
||||
(lib.mesonEnable "doc" enableDocumentation)
|
||||
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
|
||||
"-Dtests=disabled"
|
||||
|
Loading…
Reference in New Issue
Block a user