504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
59 lines
1.2 KiB
Nix
59 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, rocmUpdateScript
|
|
, cmake
|
|
, clr
|
|
, git
|
|
, rocdbgapi
|
|
, elfutils
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "rocr-debug-agent";
|
|
version = "5.7.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ROCm";
|
|
repo = "rocr_debug_agent";
|
|
rev = "rocm-${finalAttrs.version}";
|
|
hash = "sha256-AUDbNrFtUQ5Hm+uv5KMovh7P9wXQKLyRNx9gEQFnv6Y=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
clr
|
|
git
|
|
];
|
|
|
|
buildInputs = [
|
|
rocdbgapi
|
|
elfutils
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DCMAKE_MODULE_PATH=${clr}/lib/cmake/hip"
|
|
"-DHIP_ROOT_DIR=${clr}"
|
|
"-DHIP_PATH=${clr}"
|
|
];
|
|
|
|
# Weird install target
|
|
postInstall = ''
|
|
rm -rf $out/src
|
|
'';
|
|
|
|
passthru.updateScript = rocmUpdateScript {
|
|
name = finalAttrs.pname;
|
|
owner = finalAttrs.src.owner;
|
|
repo = finalAttrs.src.repo;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Library that provides some debugging functionality for ROCr";
|
|
homepage = "https://github.com/ROCm/rocr_debug_agent";
|
|
license = with licenses; [ ncsa ];
|
|
maintainers = teams.rocm.members;
|
|
platforms = platforms.linux;
|
|
broken = versions.minor finalAttrs.version != versions.minor stdenv.cc.version || versionAtLeast finalAttrs.version "6.0.0";
|
|
};
|
|
})
|