Files
2026-04-08 09:20:18 -07:00

54 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
ninja,
nix-update-script,
qt6,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "rocprof-compute-viewer";
version = "0.1.6";
src = fetchFromGitHub {
owner = "ROCm";
repo = "rocprof-compute-viewer";
rev = finalAttrs.version;
hash = "sha256-hjwqU5TxV4p2EjGy5haQfQqItVtYMI7i/VIfrKZvqhE=";
};
nativeBuildInputs = [
cmake
ninja
qt6.wrapQtAppsHook
];
buildInputs = [
qt6.qtbase
];
# tries to use qt_deploy_runtime_dependencies, but wrapQtAppsHook
# handles that instead
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail 'install(SCRIPT ''${deploy_script})' ""
'';
cmakeFlags = [
(lib.cmakeFeature "QT_VERSION_MAJOR" "6")
(lib.cmakeBool "RCV_DISABLE_OPENGL" true)
];
passthru.updateScript = nix-update-script { };
meta = {
description = "Visualization tool for AMD GPU thread traces from rocprofv3 --att";
homepage = "https://github.com/ROCm/rocprof-compute-viewer";
license = lib.licenses.mit;
platforms = lib.platforms.linux;
mainProgram = "rocprof-compute-viewer";
};
})