anchor.diff:      platforms = platforms.linux;
       maintainers = with maintainers; [ primeos jfrankenau ];
     };
  +
  +  postFixup = stdenv.lib.optionalString enableX11 ''
  +    patchelf --set-rpath "$(patchelf --print-rpath $out/lib/dri/iHD_drv_video.so):${stdenv.lib.makeLibraryPath [ libX11  ]}" \
  +      $out/lib/dri/iHD_drv_video.so
  +  '';
   }
  
positive.code: 
    nativeBuildInputs = [ cmake pkg-config ];
  
    buildInputs = [ libva libpciaccess intel-gmmlib libX11 ];
  
    meta = with stdenv.lib; {
      description = "Intel Media Driver for VAAPI — Broadwell+ iGPUs";
  
negative.code: { stdenv, fetchFromGitHub
  , cmake, pkg-config
  , libva, libpciaccess, intel-gmmlib
  , enableX11 ? true, libX11
  }:
  
  stdenv.mkDerivation rec {
  