26 buildNum = "2024-09-26-1411";
33 url = "https://gpuopen.com/download/radeon-developer-tool-suite/RadeonDeveloperToolSuite-${buildNum}.tgz";
34 hash = "sha256-mgIFDStgat4E+67TaSLrcwgWTu7zLf7Nkn6zBlgeVcQ=";
37 nativeBuildInputs = [ makeWrapper autoPatchelfHook ];
60 mkdir -p $out/opt/rgp $out/bin
63 chmod +x $out/opt/rgp/scripts/*
64 patchShebangs $out/opt/rgp/scripts
66 for prog in RadeonDeveloperPanel RadeonDeveloperService RadeonDeveloperServiceCLI RadeonGPUAnalyzer RadeonGPUProfiler RadeonMemoryVisualizer RadeonRaytracingAnalyzer rga rtda; do
67 # makeWrapper is needed so that executables are started from the opt
68 # directory, where qt.conf and other tools are.
69 # Unset Qt theme, it does not work if the nixos Qt version is different from the packaged one.
73 --unset QT_QPA_PLATFORMTHEME \
74 --unset QT_STYLE_OVERRIDE \
75 --prefix LD_LIBRARY_PATH : $out/opt/rgp/lib
80 description = "Tool from AMD that allows for deep inspection of GPU workloads";
81 homepage = "https://gpuopen.com/rgp/";
82 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
83 license = licenses.unfree;
84 platforms = [ "x86_64-linux" ];
85 maintainers = with maintainers; [ Flakebi ];