anchor.diff:  , fdk_aac
   , ffmpeg
   , jansson
  +, libjack2
   , libxkbcommon
   , libpthreadstubs
   , libXdmcp
   , qtbase
   , qtx11extras
  +, speex
   , libv4l
   , x264
   , curl
   , xorg
   , makeWrapper
   , pkgconfig
  +, vlc
   
   , alsaSupport ? false
   , alsaLib
  
positive.code:   optional = stdenv.lib.optional;
  in stdenv.mkDerivation rec {
    name = "obs-studio-${version}";
    version = "20.0.1";
  
    src = fetchFromGitHub {
      owner = "jp9000";
      repo = "obs-studio";
      rev = "${version}";
      sha256 = "1f701rh4w88ba48b50y16fvmzzsyv4y5nv30mrx3pb2ni7wyanld";
    };
  
    patches = [ ./find-xcb.patch ];
  
negative.code:                   fdk_aac
                    ffmpeg
                    jansson
                    libjack2
                    libv4l
                    libxkbcommon
                    libpthreadstubs
                    libXdmcp
                    qtbase
                    qtx11extras
                    speex
                    x264
                    vlc
                    makeWrapper
                  ]
                  ++ optional alsaSupport alsaLib
  