1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 rocmUpdateScript, 6 cmake, 7 clr, 8 git, 9 rocdbgapi, 10 elfutils, 11}: 12 13stdenv.mkDerivation (finalAttrs: { 14 pname = "rocr-debug-agent"; 15 version = "6.3.3"; 16 17 src = fetchFromGitHub { 18 owner = "ROCm"; 19 repo = "rocr_debug_agent"; 20 rev = "rocm-${finalAttrs.version}"; 21 hash = "sha256-HYag5/E72hopDhS9EVcdyGgSvzbCMzKqLC+SIS28Y9M="; 22 }; 23 24 nativeBuildInputs = [ 25 cmake 26 clr 27 git 28 ]; 29 30 buildInputs = [ 31 rocdbgapi 32 elfutils 33 ]; 34 35 cmakeFlags = [ 36 "-DCMAKE_MODULE_PATH=${clr}/lib/cmake/hip" 37 "-DHIP_ROOT_DIR=${clr}" 38 "-DHIP_PATH=${clr}" 39 ]; 40 41 # Weird install target 42 postInstall = '' 43 rm -rf $out/src 44 ''; 45 46 passthru.updateScript = rocmUpdateScript { 47 name = finalAttrs.pname; 48 inherit (finalAttrs.src) owner; 49 inherit (finalAttrs.src) repo; 50 }; 51 52 meta = with lib; { 53 description = "Library that provides some debugging functionality for ROCr"; 54 homepage = "https://github.com/ROCm/rocr_debug_agent"; 55 license = with licenses; [ ncsa ]; 56 teams = [ teams.rocm ]; 57 platforms = platforms.linux; 58 }; 59})