{ 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 = "6.0.2"; outputs = [ "out" ] ++ lib.optionals buildDocs [ "doc" ] ++ lib.optionals buildTests [ "test" ]; src = fetchFromGitHub { owner = "ROCm"; repo = "roctracer"; rev = "rocm-${finalAttrs.version}"; hash = "sha256-a6/N6W3JXVI0VZRGxlS3cVENC3VTP1w9UFnd0+EWAuo="; }; 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_