2020-04-02 11:49:36 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, makeWrapper
|
|
|
|
, fetchurl
|
|
|
|
, autoPatchelfHook
|
|
|
|
, dbus
|
|
|
|
, fontconfig
|
|
|
|
, freetype
|
|
|
|
, glib
|
2020-11-25 11:47:26 +00:00
|
|
|
, libGLU
|
2020-04-02 11:49:36 +00:00
|
|
|
, libglvnd
|
|
|
|
, libX11
|
|
|
|
, libxcb
|
|
|
|
, libXi
|
2021-07-22 12:56:56 +00:00
|
|
|
, ncurses
|
2020-04-02 11:49:36 +00:00
|
|
|
, qtbase
|
2020-09-14 16:46:29 +00:00
|
|
|
, qtdeclarative
|
2020-04-02 11:49:36 +00:00
|
|
|
, zlib
|
|
|
|
}:
|
|
|
|
|
2020-09-14 16:46:29 +00:00
|
|
|
let
|
2023-06-05 12:14:53 +00:00
|
|
|
buildNum = "2023-05-22-1083";
|
2020-09-14 16:46:29 +00:00
|
|
|
in
|
2023-03-01 13:43:14 +00:00
|
|
|
stdenv.mkDerivation {
|
2020-04-02 11:49:36 +00:00
|
|
|
pname = "rgp";
|
2023-06-05 12:14:53 +00:00
|
|
|
version = "1.15.1";
|
2020-04-02 11:49:36 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-11-25 11:47:26 +00:00
|
|
|
url = "https://gpuopen.com/download/radeon-developer-tool-suite/RadeonDeveloperToolSuite-${buildNum}.tgz";
|
2023-06-05 12:14:53 +00:00
|
|
|
hash = "sha256-WSSiNiiIVw1wwt9vxgyirBDe+SPzH87LU1GlSdUhZB8=";
|
2020-04-02 11:49:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper autoPatchelfHook ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dbus
|
|
|
|
fontconfig
|
|
|
|
freetype
|
|
|
|
glib
|
2020-11-25 11:47:26 +00:00
|
|
|
libGLU
|
2020-04-02 11:49:36 +00:00
|
|
|
libglvnd
|
|
|
|
libX11
|
|
|
|
libxcb
|
|
|
|
libXi
|
2021-07-22 12:56:56 +00:00
|
|
|
ncurses
|
2020-04-02 11:49:36 +00:00
|
|
|
qtbase
|
2020-09-14 16:46:29 +00:00
|
|
|
qtdeclarative
|
2020-04-02 11:49:36 +00:00
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
2021-01-12 11:50:23 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2020-04-02 11:49:36 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/opt/rgp $out/bin
|
|
|
|
cp -r . $out/opt/rgp/
|
|
|
|
|
2021-04-22 16:56:11 +00:00
|
|
|
chmod +x $out/opt/rgp/scripts/*
|
|
|
|
patchShebangs $out/opt/rgp/scripts
|
|
|
|
|
2022-08-16 14:23:54 +00:00
|
|
|
for prog in RadeonDeveloperPanel RadeonDeveloperService RadeonDeveloperServiceCLI RadeonGPUAnalyzer RadeonGPUProfiler RadeonMemoryVisualizer RadeonRaytracingAnalyzer rga rtda; do
|
2020-04-02 11:49:36 +00:00
|
|
|
# makeWrapper is needed so that executables are started from the opt
|
2020-11-25 11:47:26 +00:00
|
|
|
# directory, where qt.conf and other tools are
|
2020-04-02 11:49:36 +00:00
|
|
|
makeWrapper \
|
|
|
|
$out/opt/rgp/$prog \
|
|
|
|
$out/bin/$prog
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A tool from AMD that allows for deep inspection of GPU workloads";
|
2020-11-25 11:47:26 +00:00
|
|
|
homepage = "https://gpuopen.com/rgp/";
|
2022-06-16 22:11:43 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2020-04-02 11:49:36 +00:00
|
|
|
license = licenses.unfree;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = with maintainers; [ Flakebi ];
|
|
|
|
};
|
|
|
|
}
|