anchor.diff:    mesonFlags = [
       "-Dexamples=disabled" # requires many dependencies and probably not useful for our users
       "-Dgl-graphene=disabled" # not packaged in nixpkgs as of writing
  -    "-Dgl_platform=[${lib.optionalString (enableX11 || enableWayland || enableCocoa) "auto"}]"
       # 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")}]"
  +    "-Dgl_winsys=${lib.concatStringsSep "," (lib.optional enableX11 "x11" ++ lib.optional enableWayland "wayland" ++ lib.optional enableCocoa "cocoa")}"
       # We must currently disable gtk_doc API docs generation,
       # because it is not compatible with some features being disabled.
       # See for example
  
positive.code:   ] ++ lib.optionals stdenv.isDarwin [
      pango
      darwin.apple_sdk.frameworks.OpenGL
    ] ++ lib.optional enableAlsa alsaLib
      ++ lib.optionals enableX11 [ libXv pango ]
      ++ lib.optional enableWayland wayland
      ++ lib.optional enableCocoa darwin.apple_sdk.frameworks.Cocoa
      ++ lib.optional enableCdparanoia cdparanoia;
  
    propagatedBuildInputs = [
  
negative.code: , libXv
  , enableWayland ? stdenv.isLinux
  , wayland
  , wayland-protocols
  , enableAlsa ? stdenv.isLinux
  , alsaLib
  # Enabling Cocoa seems to currently not work, giving compile
  