anchor.diff:    ] ++ lib.optionals enableWayland [
       wayland
       wayland-protocols
  +  ] ++ lib.optionals withIntrospection [
  +    gobject-introspection
     ] ++ lib.optional enableCocoa Cocoa
       ++ lib.optional enableCdparanoia cdparanoia;
   
  
positive.code: , enableCdparanoia ? (!stdenv.isDarwin)
  , cdparanoia
  , glib
  }:
  
  stdenv.mkDerivation rec {
  
negative.code:     "-Dgl-graphene=disabled" # not packaged in nixpkgs as of writing
      # 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")}"
      "-Dintrospection=${if withIntrospection then "enabled" else "disabled"}"
    ] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
      "-Dtests=disabled"
    ]
    ++ lib.optional (!enableX11) "-Dx11=disabled"
  