Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.0 kB · 91 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192{ lib, stdenv, makeWrapper, fetchurl, autoPatchelfHook, dbus, fontconfig, freetype, glib, libdrm, libGLU, libglvnd, libICE, libkrb5, libSM, libX11, libxcb, libXi, libxkbcommon, ncurses, wayland, zlib,}:
let buildNum = "2024-09-26-1411";instdenv.mkDerivation { pname = "rgp"; version = "2.3";
src = fetchurl { url = "https://gpuopen.com/download/radeon-developer-tool-suite/RadeonDeveloperToolSuite-${buildNum}.tgz"; hash = "sha256-mgIFDStgat4E+67TaSLrcwgWTu7zLf7Nkn6zBlgeVcQ="; };
nativeBuildInputs = [ makeWrapper autoPatchelfHook ];
buildInputs = [ dbus fontconfig freetype glib libdrm libGLU libglvnd libICE libkrb5 libSM libX11 libxcb libXi libxkbcommon ncurses wayland zlib ];
installPhase = '' mkdir -p $out/opt/rgp $out/bin cp -r . $out/opt/rgp/
chmod +x $out/opt/rgp/scripts/* patchShebangs $out/opt/rgp/scripts
for prog in RadeonDeveloperPanel RadeonDeveloperService RadeonDeveloperServiceCLI RadeonGPUAnalyzer RadeonGPUProfiler RadeonMemoryVisualizer RadeonRaytracingAnalyzer rga rtda; do # makeWrapper is needed so that executables are started from the opt # directory, where qt.conf and other tools are. # Unset Qt theme, it does not work if the nixos Qt version is different from the packaged one. makeWrapper \ $out/opt/rgp/$prog \ $out/bin/$prog \ --unset QT_QPA_PLATFORMTHEME \ --unset QT_STYLE_OVERRIDE \ --prefix LD_LIBRARY_PATH : $out/opt/rgp/lib done '';
meta = with lib; { description = "Tool from AMD that allows for deep inspection of GPU workloads"; homepage = "https://gpuopen.com/rgp/"; sourceProvenance = with sourceTypes; [ binaryNativeCode ]; license = licenses.unfree; platforms = [ "x86_64-linux" ]; maintainers = with maintainers; [ Flakebi ]; };}