anchor.diff:      sha256 = "1cidki3av9wnkgwi7fklxbg3bh6kysf8w3fk2qadjr05a92mx3zp";
     };
   
  -  patchPhase = ''
  -    patchShebangs ./src/shaders/gpp.py
  -  '';
  -
  -  preConfigure = ''
  -    sed -i -e "s,LIBVA_DRIVERS_PATH=.*,LIBVA_DRIVERS_PATH=$out/lib/dri," configure
  -  '';
  +  # Set the correct install path:
  +  LIBVA_DRIVERS_PATH = "${placeholder "out"}/lib/dri";
   
     postInstall = stdenv.lib.optionalString enableHybridCodec ''
       ln -s ${vaapi-intel-hybrid}/lib/dri/* $out/lib/dri/
     '';
   
     configureFlags = [
  -    "--enable-drm"
       "--enable-x11"
       "--enable-wayland"
     ] ++ stdenv.lib.optional enableHybridCodec "--enable-hybrid-codec";
   
  -  nativeBuildInputs = [ autoreconfHook gnum4 pkgconfig python2 ];
  +  nativeBuildInputs = [ autoreconfHook gnum4 pkg-config python3 ];
   
     buildInputs = [ intel-gpu-tools libdrm libva libX11 libXext libGL wayland ]
       ++ stdenv.lib.optional enableHybridCodec vaapi-intel-hybrid;
  
positive.code:   meta = with stdenv.lib; {
      homepage = "https://01.org/linuxmedia";
      license = licenses.mit;
      description = "Intel driver for the VAAPI library";
      platforms = platforms.unix;
      maintainers = with maintainers; [ ];
    };
  }
  
negative.code: { stdenv, fetchFromGitHub, autoreconfHook, gnum4, pkg-config, python3
  , intel-gpu-tools, libdrm, libva, libX11, libGL, wayland, libXext
  , enableHybridCodec ? false, vaapi-intel-hybrid
  }:
  