2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, makeWrapper
|
|
|
|
, fetchurl
|
|
|
|
, autoPatchelfHook
|
|
|
|
, dbus
|
|
|
|
, fontconfig
|
|
|
|
, freetype
|
|
|
|
, glib
|
2020-11-30 08:33:03 +00:00
|
|
|
, libGLU
|
2020-04-24 23:36:52 +00:00
|
|
|
, libglvnd
|
|
|
|
, libX11
|
|
|
|
, libxcb
|
|
|
|
, libXi
|
2021-07-24 12:14:16 +00:00
|
|
|
, ncurses
|
2020-04-24 23:36:52 +00:00
|
|
|
, qtbase
|
2020-09-25 04:45:31 +00:00
|
|
|
, qtdeclarative
|
2020-04-24 23:36:52 +00:00
|
|
|
, zlib
|
|
|
|
}:
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
let
|
2022-01-23 02:10:13 +00:00
|
|
|
buildNum = "2022-01-18-884";
|
2020-09-25 04:45:31 +00:00
|
|
|
in
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rgp";
|
2022-01-23 02:10:13 +00:00
|
|
|
version = "1.12";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-11-30 08:33:03 +00:00
|
|
|
url = "https://gpuopen.com/download/radeon-developer-tool-suite/RadeonDeveloperToolSuite-${buildNum}.tgz";
|
2022-01-23 02:10:13 +00:00
|
|
|
sha256 = "88ot16N8XtRlDCP+zIaOqG5BuR0OyG/0u1NEXsun/nY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper autoPatchelfHook ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dbus
|
|
|
|
fontconfig
|
|
|
|
freetype
|
|
|
|
glib
|
2020-11-30 08:33:03 +00:00
|
|
|
libGLU
|
2020-04-24 23:36:52 +00:00
|
|
|
libglvnd
|
|
|
|
libX11
|
|
|
|
libxcb
|
|
|
|
libXi
|
2021-07-24 12:14:16 +00:00
|
|
|
ncurses
|
2020-04-24 23:36:52 +00:00
|
|
|
qtbase
|
2020-09-25 04:45:31 +00:00
|
|
|
qtdeclarative
|
2020-04-24 23:36:52 +00:00
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/opt/rgp $out/bin
|
|
|
|
cp -r . $out/opt/rgp/
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
chmod +x $out/opt/rgp/scripts/*
|
|
|
|
patchShebangs $out/opt/rgp/scripts
|
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
for prog in RadeonDeveloperPanel RadeonDeveloperService RadeonDeveloperServiceCLI RadeonGPUAnalyzer RadeonGPUProfiler rga rtda; do
|
2020-04-24 23:36:52 +00:00
|
|
|
# makeWrapper is needed so that executables are started from the opt
|
2020-11-30 08:33:03 +00:00
|
|
|
# directory, where qt.conf and other tools are
|
2020-04-24 23:36:52 +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-30 08:33:03 +00:00
|
|
|
homepage = "https://gpuopen.com/rgp/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.unfree;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = with maintainers; [ Flakebi ];
|
|
|
|
};
|
|
|
|
}
|