rgp: 2.1 -> 2.2 (#337738)

This commit is contained in:
Peder Bergebakken Sundt 2024-09-05 11:00:53 -04:00 committed by GitHub
commit 54c96ca09d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,19 +18,20 @@
, libXi , libXi
, libxkbcommon , libxkbcommon
, ncurses , ncurses
, wayland
, zlib , zlib
}: }:
let let
buildNum = "2024-04-18-1396"; buildNum = "2024-06-26-1341";
in in
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "rgp"; pname = "rgp";
version = "2.1"; version = "2.2";
src = fetchurl { src = fetchurl {
url = "https://gpuopen.com/download/radeon-developer-tool-suite/RadeonDeveloperToolSuite-${buildNum}.tgz"; url = "https://gpuopen.com/download/radeon-developer-tool-suite/RadeonDeveloperToolSuite-${buildNum}.tgz";
hash = "sha256-mP5tmq252IsWYVRGNKVib8ZbM5M4srUKXJ3x2ff4YhM="; hash = "sha256-mpm4hxWyunq6Z6kdSuk4jqnYOTuLFVe+XzXZvHJPf/Q=";
}; };
nativeBuildInputs = [ makeWrapper autoPatchelfHook ]; nativeBuildInputs = [ makeWrapper autoPatchelfHook ];
@ -51,6 +52,7 @@ stdenv.mkDerivation {
libXi libXi
libxkbcommon libxkbcommon
ncurses ncurses
wayland
zlib zlib
]; ];
@ -65,13 +67,11 @@ stdenv.mkDerivation {
# makeWrapper is needed so that executables are started from the opt # makeWrapper is needed so that executables are started from the opt
# directory, where qt.conf and other tools are. # 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. # Unset Qt theme, it does not work if the nixos Qt version is different from the packaged one.
# The packaged Qt version only supports X11, so enforce that.
makeWrapper \ makeWrapper \
$out/opt/rgp/$prog \ $out/opt/rgp/$prog \
$out/bin/$prog \ $out/bin/$prog \
--unset QT_QPA_PLATFORMTHEME \ --unset QT_QPA_PLATFORMTHEME \
--unset QT_STYLE_OVERRIDE \ --unset QT_STYLE_OVERRIDE \
--set QT_QPA_PLATFORM xcb \
--prefix LD_LIBRARY_PATH : $out/opt/rgp/lib --prefix LD_LIBRARY_PATH : $out/opt/rgp/lib
done done
''; '';