anchor.diff:    # DL_OPENGL is an explicit path. Not sure if there's a better way
     # to handle this.
     cmakeFlags = [ "-DCMAKE_CXX_FLAGS=-DDL_OPENGL=\\\"$(out)/lib/libobs-opengl.so\\\"" ];
  +
  +  postInstall = ''
  +      wrapProgram $out/bin/obs \
  +        --prefix "LD_LIBRARY_PATH" : "${xorg.libX11.out}/lib"
  +  '';
   
     meta = with stdenv.lib; {
       description = "Free and open source software for video recording and live streaming";
  
positive.code: , libv4l
  , x264
  , curl
  
  , alsaSupport ? false
  , alsaLib
  
negative.code:                   qtbase
                    qtx11extras
                    x264
                    makeWrapper
                  ]
                  ++ optional alsaSupport alsaLib
                  ++ optional pulseaudioSupport libpulseaudio;
  