{ lib , stdenv , fetchFromGitHub , rocmUpdateScript , cmake , clr , rocm-device-libs , libxml2 , doxygen , graphviz , gcc-unwrapped , libbacktrace , 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.1"; 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 clr ] ++ lib.optionals buildDocs [ doxygen graphviz ]; buildInputs = [ libxml2 libbacktrace python3Packages.python python3Packages.cppheaderparser ]; cmakeFlags = [ "-DCMAKE_MODULE_PATH=${clr}/hip/cmake" # Manually define CMAKE_INSTALL_