anchor.diff:    installPhase = ''
       mkdir -p $out/opt/rgp $out/bin
       cp -r . $out/opt/rgp/
  -    # Breaks autoPatchelfHook and has no known usage
  -    rm $out/opt/rgp/AMDToolsDownloader
   
  -    for prog in RadeonGPUProfiler RadeonDeveloperPanel RadeonDeveloperService RadeonDeveloperServiceCLI; do
  +    for prog in RadeonDeveloperPanel RadeonDeveloperService RadeonDeveloperServiceCLI RadeonGPUAnalyzer RadeonGPUProfiler rga rtda; do
         # makeWrapper is needed so that executables are started from the opt
  -      # directory, where qt.conf is
  +      # directory, where qt.conf and other tools are
         makeWrapper \
           $out/opt/rgp/$prog \
           $out/bin/$prog
  
positive.code:     fontconfig
      freetype
      glib
      libglvnd
      libX11
      libxcb
  
negative.code: }:
  
  let
    buildNum = "2020-11-19-376";
  in
  stdenv.mkDerivation rec {
    pname = "rgp";
    version = "1.9";
  
    src = fetchurl {
      url = "https://gpuopen.com/download/radeon-developer-tool-suite/RadeonDeveloperToolSuite-${buildNum}.tgz";
      sha256 = "f71ibuMerd0SmXKSDjaTj7xtyy1dWzkZ5s0PlGtQ1+k=";
    };
  
    nativeBuildInputs = [ makeWrapper autoPatchelfHook ];
  