{ lib , stdenv , fetchFromGitHub , rocmUpdateScript , cmake , rocm-runtime , rocm-thunk , roctracer , numactl }: stdenv.mkDerivation (finalAttrs: { pname = "rocprofiler"; version = "5.4.3"; src = fetchFromGitHub { owner = "ROCm-Developer-Tools"; repo = "rocprofiler"; rev = "rocm-${finalAttrs.version}"; hash = "sha256-CpD/+soMN8WTeSb5X7dsnZ596PMkw+4EVsVSvFtKCak="; }; patches = [ ./0000-dont-require-hsa_amd_aqlprofile.patch ]; nativeBuildInputs = [ cmake ]; buildInputs = [ rocm-thunk rocm-runtime numactl ]; cmakeFlags = [ "-DPROF_API_HEADER_PATH=${roctracer.src}/inc/ext" # Manually define CMAKE_INSTALL_