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