2023-01-20 10:41:00 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rocmUpdateScript
|
|
|
|
, pkg-config
|
|
|
|
, texinfo
|
|
|
|
, bison
|
|
|
|
, flex
|
|
|
|
, zlib
|
|
|
|
, elfutils
|
|
|
|
, gmp
|
|
|
|
, ncurses
|
|
|
|
, expat
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "rocgdb";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "5.7.1";
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2024-01-02 11:29:13 +00:00
|
|
|
owner = "ROCm";
|
2023-01-20 10:41:00 +00:00
|
|
|
repo = "ROCgdb";
|
|
|
|
rev = "rocm-${finalAttrs.version}";
|
2023-10-19 13:55:26 +00:00
|
|
|
hash = "sha256-TlT7vvTrVd7P6ilVnWIG5VIrjTleFgDezK/mudBV+xE=";
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
texinfo # For makeinfo
|
|
|
|
bison
|
|
|
|
flex
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
zlib
|
|
|
|
elfutils
|
|
|
|
gmp
|
|
|
|
ncurses
|
|
|
|
expat
|
|
|
|
];
|
|
|
|
|
|
|
|
# `-Wno-format-nonliteral` doesn't work
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-Wno-error=format-security";
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
passthru.updateScript = rocmUpdateScript {
|
|
|
|
name = finalAttrs.pname;
|
|
|
|
owner = finalAttrs.src.owner;
|
|
|
|
repo = finalAttrs.src.repo;
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "ROCm source-level debugger for Linux, based on GDB";
|
2024-01-02 11:29:13 +00:00
|
|
|
homepage = "https://github.com/ROCm/ROCgdb";
|
2023-01-20 10:41:00 +00:00
|
|
|
license = with licenses; [ gpl2 gpl3 bsd3 ];
|
|
|
|
maintainers = teams.rocm.members;
|
|
|
|
platforms = platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
broken = versionAtLeast finalAttrs.version "6.0.0";
|
2023-01-20 10:41:00 +00:00
|
|
|
};
|
|
|
|
})
|