{ lib , stdenv , fetchFromGitHub , rocmUpdateScript , cmake , rocm-cmake , git , rocm-comgr , rocm-runtime , hwdata , texliveSmall , doxygen , graphviz , buildDocs ? true }: let latex = lib.optionalAttrs buildDocs (texliveSmall.withPackages (ps: with ps; [ changepage latexmk varwidth multirow hanging adjustbox collectbox stackengine enumitem alphalph wasysym sectsty tocloft newunicodechar etoc helvetic wasy courier ])); in stdenv.mkDerivation (finalAttrs: { pname = "rocdbgapi"; version = "5.7.1"; outputs = [ "out" ] ++ lib.optionals buildDocs [ "doc" ]; src = fetchFromGitHub { owner = "ROCm-Developer-Tools"; repo = "ROCdbgapi"; rev = "rocm-${finalAttrs.version}"; hash = "sha256-qMXvgcS61lgcylz62ErYq8fhpYIR31skQEeKUryuP1w="; }; nativeBuildInputs = [ cmake rocm-cmake git ] ++ lib.optionals buildDocs [ latex doxygen graphviz ]; buildInputs = [ rocm-comgr rocm-runtime hwdata ]; cmakeFlags = [ "-DPCI_IDS_PATH=${hwdata}/share/hwdata" # Manually define CMAKE_INSTALL_