nixpkgs-suyu/pkgs/development/tools/rgp/default.nix

77 lines
1.5 KiB
Nix
Raw Normal View History

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