anchor.diff:  , qtbase, qtx11extras, qtsvg, makeWrapper
   , vulkan-loader, libglvnd, xorg, python3, python3Packages
   , bison, pcre, automake, autoconf, addOpenGLRunpath
  +, waylandSupport ? false, wayland
   }:
   let
     custom_swig = fetchFromGitHub {
  
positive.code:     sha256 = "15r2m5kcs0id64pa2fsw58qll3jyh71jzc04wy20pgsh2326zis6";
    };
    pythonPackages = python3Packages;
  in
  mkDerivation rec {
    version = "1.14";
    pname = "renderdoc";
  
    src = fetchFromGitHub {
      owner = "baldurk";
      repo = "renderdoc";
      rev = "v${version}";
      sha256 = "VO7pOLodXI0J7O4Y9b7YSl5BdtsIxmalFG5mqfuiJEw=";
    };
  
    buildInputs = [
      qtbase qtsvg xorg.libpthreadstubs xorg.libXdmcp qtx11extras vulkan-loader python3
    ]; # ++ (with pythonPackages; [pyside2 pyside2-tools shiboken2]);
    # TODO: figure out how to make cmake recognise pyside2
  
    nativeBuildInputs = [ cmake makeWrapper pkg-config bison pcre automake autoconf addOpenGLRunpath ];
  
  
negative.code:     "-DBUILD_VERSION_DIST_VER=${version}"
      "-DBUILD_VERSION_DIST_CONTACT=https://github.com/NixOS/nixpkgs/tree/master/pkgs/applications/graphics/renderdoc"
      "-DBUILD_VERSION_STABLE=ON"
      "-DENABLE_WAYLAND=${cmakeBool waylandSupport}"
    ];
  
    # TODO: define these in the above array via placeholders, once those are widely supported
  