anchor.diff:  , fetchTritonPatch
   , fetchurl
   , lib
  +#, meson
  +#, ninja
   
   , libx11
   , libxext
  
positive.code: }:
  
  stdenv.mkDerivation rec {
    name = "libvdpau-1.1.1";
  
    src = fetchurl {
      url = "https://people.freedesktop.org/~aplattner/vdpau/${name}.tar.bz2";
      multihash = "Qmant8W2qcuE8iyP8gAXPzkRxn9gFaKXgjKxNPqFbtQPPj";
      hashOutput = false;
      sha256 = "857a01932609225b9a3a5bf222b85e39b55c08787d0ad427dbd9ec033d58d736";
    };
  
    buildInputs = [
      libx11
  
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;
      };
    };
  
  