{ lib , stdenv , fetchFromGitHub , rocmUpdateScript , cmake , clang , clr , rocm-thunk , roctracer , rocm-smi , hsa-amd-aqlprofile-bin , numactl , libpciaccess , libxml2 , elfutils , mpi , gtest , python3Packages , gpuTargets ? [ "gfx900" "gfx906" "gfx908" "gfx90a" "gfx940" "gfx941" "gfx942" "gfx1030" "gfx1100" "gfx1101" "gfx1102" ] }: stdenv.mkDerivation (finalAttrs: { pname = "rocprofiler"; version = "5.7.0"; src = fetchFromGitHub { owner = "ROCm-Developer-Tools"; repo = "rocprofiler"; rev = "rocm-${finalAttrs.version}"; hash = "sha256-ue/2uiLbhOv/5XY4cIJuZ8DUMRhniYgxolq9xMwO1FY="; }; nativeBuildInputs = [ cmake clang clr python3Packages.lxml python3Packages.cppheaderparser python3Packages.pyyaml python3Packages.barectf ]; buildInputs = [ rocm-thunk rocm-smi hsa-amd-aqlprofile-bin numactl libpciaccess libxml2 elfutils mpi gtest ]; cmakeFlags = [ "-DCMAKE_MODULE_PATH=${clr}/lib/cmake/hip" "-DPROF_API_HEADER_PATH=${roctracer.src}/inc/ext" "-DHIP_ROOT_DIR=${clr}" "-DGPU_TARGETS=${lib.concatStringsSep ";" gpuTargets}" # Manually define CMAKE_INSTALL_