How to trigger applemedia in pkg "gst-plugins-bad" or Darwin?


I am struggling to build applemedia in pkg gst-plugins-bad on osx.

On the nix file, the applemedia is by default disabled like this

++ lib.optionals (!gst-plugins-base.glEnabled) [
    # `applemedia/videotexturecache.h` requires `gst/gl/gl.h`,
    # but its meson build system does not declare the dependency.

I have tried override { enableCocoa = true; } to enable enableGl
in pkg git-plugins-base. But the applemedia dependencies in gst-plugins-bad still dont get to build.