mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 02:05:51 +03:00
b00586cb26
'RadeonOpenCompute', 'ROCm-Developer-Tools', 'ROCmSoftwarePlatform', 'GPUOpen-ProfessionalCompute-Libraries' -> 'ROCm'
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, rocmUpdateScript
|
|
, pkg-config
|
|
, texinfo
|
|
, bison
|
|
, flex
|
|
, zlib
|
|
, elfutils
|
|
, gmp
|
|
, ncurses
|
|
, expat
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "rocgdb";
|
|
version = "5.7.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ROCm";
|
|
repo = "ROCgdb";
|
|
rev = "rocm-${finalAttrs.version}";
|
|
hash = "sha256-TlT7vvTrVd7P6ilVnWIG5VIrjTleFgDezK/mudBV+xE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
texinfo # For makeinfo
|
|
bison
|
|
flex
|
|
];
|
|
|
|
buildInputs = [
|
|
zlib
|
|
elfutils
|
|
gmp
|
|
ncurses
|
|
expat
|
|
];
|
|
|
|
# `-Wno-format-nonliteral` doesn't work
|
|
env.NIX_CFLAGS_COMPILE = "-Wno-error=format-security";
|
|
|
|
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";
|
|
homepage = "https://github.com/ROCm/ROCgdb";
|
|
license = with licenses; [ gpl2 gpl3 bsd3 ];
|
|
maintainers = teams.rocm.members;
|
|
platforms = platforms.linux;
|
|
broken = versionAtLeast finalAttrs.version "6.0.0";
|
|
};
|
|
})
|