anchor.diff:  , libva
   , libpciaccess
   , intel-gmmlib
  +, libdrm
   , enableX11 ? stdenv.isLinux
   , libX11
   }:
   
   stdenv.mkDerivation rec {
     pname = "intel-media-driver";
  -  version = "21.4.3";
  +  version = "22.1.0";
   
     outputs = [ "out" "dev" ];
   
  
positive.code: 
    nativeBuildInputs = [ cmake pkg-config ];
  
    buildInputs = [ libva libpciaccess intel-gmmlib ]
      ++ lib.optional enableX11 libX11;
  
    postFixup = lib.optionalString enableX11 ''
  
negative.code:     owner = "intel";
      repo = "media-driver";
      rev = "intel-media-${version}";
      sha256 = "0giba5274kzpjb5rp3d9bbnvcz7fp8ybi4s3hha2idxk0l5yamf1";
    };
  
    patches = [
  