{ lib , stdenv , fetchFromGitHub , rocmUpdateScript , cmake , clang , clr , rocm-device-libs , rocprofiler , libxml2 , doxygen , graphviz , gcc-unwrapped , rocm-runtime , python3Packages , buildDocs ? false # Nothing seems to be generated, so not making the output , buildTests ? false }: stdenv.mkDerivation (finalAttrs: { pname = "roctracer"; version = "5.7.0"; outputs = [ "out" ] ++ lib.optionals buildDocs [ "doc" ] ++ lib.optionals buildTests [ "test" ]; src = fetchFromGitHub { owner = "ROCm-Developer-Tools"; repo = "roctracer"; rev = "rocm-${finalAttrs.version}"; hash = "sha256-P6QYyAjMRwFFWKF8AhbrYGe+mYVJXdbBW1or6vcobYU="; }; nativeBuildInputs = [ cmake clang clr ] ++ lib.optionals buildDocs [ doxygen graphviz ]; buildInputs = [ rocprofiler libxml2 python3Packages.python python3Packages.cppheaderparser ]; cmakeFlags = [ "-DCMAKE_MODULE_PATH=${clr}/hip/cmake" # Manually define CMAKE_INSTALL_