anchor.diff:  
     postPatch = ''
       rm -rf obj-x86_64-pc-linux-gnu
  -
  -    # needed for enabling webrtc+pipewire
  +  '' + lib.optionalString pipewireSupport ''
  +    # substitute the /usr/include/ lines for the libraries that pipewire provides.
  +    # The patch we pick from fedora only contains the generated moz.build files
  +    # which hardcode the dependency paths instead of running pkg_config.
       substituteInPlace \
         media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_capture_generic_gn/moz.build \
         --replace /usr/include ${pipewire.dev}/include
  
positive.code: , pulseaudioSupport ? stdenv.isLinux, libpulseaudio
  , ffmpegSupport ? true
  , gtk3Support ? true, gtk2, gtk3, wrapGAppsHook
  , waylandSupport ? true, libxkbcommon, pipewire
  , gssSupport ? true, kerberos
  
  ## privacy-related options
  
  
negative.code:   ++ lib.optional  pulseaudioSupport libpulseaudio # only headers are needed
    ++ lib.optional  gtk3Support gtk3
    ++ lib.optional  gssSupport kerberos
    ++ lib.optionals waylandSupport [ libxkbcommon ]
    ++ lib.optionals pipewireSupport [ pipewire ]
    ++ lib.optionals stdenv.isDarwin [ CoreMedia ExceptionHandling Kerberos
                                       AVFoundation MediaToolbox CoreLocation
                                       Foundation libobjc AddressBook cups ];
  