anchor.diff:  , fetchTritonPatch
   , fetchurl
   , lib
  +#, meson
  +#, ninja
   
   , libx11
   , libxext
  
positive.code:     xorgproto
    ];
  
    patches = [
      (fetchTritonPatch {
        rev = "091e0ea204a9808a92583eec3e60e7a5eeb554a2";
        file = "l/libvdpau/libvdpau-1.1.1-mesa_dri2-Add-missing-include-of-config.h-to-define.patch";
        sha256 = "f9ee2809d65b3384fce2293d500169225f4ea613d673d277798d5d601f9d5eaf";
      })
    ];
  
    configureFlags = [
      "--enable-dri2"
      "--disable-documentation"
      "--with-module-dir=${opengl-dummy.driverSearchPath}/lib/vdpau"
    ];
  
    preInstall = ''
      installFlagsArray+=("moduledir=$out/lib/vdpau")
  
negative.code:     srcVerification = fetchurl rec {
        inherit (src)
          outputHash
          outputHashAlgo;
        # Upstream doesn't understand how to use gitlab.
        url = "https://gitlab.freedesktop.org/vdpau/libvdpau/uploads/14b620084c027d546fa0b3f083b800c6/libvdpau-1.2.tar.bz2";
        fullOpts = {
          pgpsigUrl = "https://gitlab.freedesktop.org/vdpau/libvdpau/uploads/0abd351387dbb4aa21a43caf847074f3/libvdpau-1.2.tar.bz2.sig";
          pgpKeyFingerprint = "BD68 A042 C603 DDAD 9AA3  54B0 F56A CC8F 09BA 9635";
        };
        failEarly = true;
      };
    };
  
  