{ lib , stdenv , fetchFromGitHub , rocmUpdateScript , cmake , clang , hip , 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.4.3"; outputs = [ "out" ] ++ lib.optionals buildDocs [ "doc" ] ++ lib.optionals buildTests [ "test" ]; src = fetchFromGitHub { owner = "ROCm-Developer-Tools"; repo = "roctracer"; rev = "rocm-${finalAttrs.version}"; hash = "sha256-5vYUNczylB2ehlvhq1u/H8KUXt8ku2E+jawKrKsU7LY="; }; nativeBuildInputs = [ cmake clang hip ] ++ lib.optionals buildDocs [ doxygen graphviz ]; buildInputs = [ rocm-device-libs rocprofiler libxml2 python3Packages.python python3Packages.cppheaderparser ]; cmakeFlags = [ "-DCMAKE_MODULE_PATH=${hip}/hip/cmake" # Manually define CMAKE_INSTALL_