mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
f9fdf2d402
with structuredAttrs lists will be bash arrays which cannot be exported which will be a issue with some patches and some wrappers like cc-wrapper this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists in env cause a eval failure
59 lines
1.1 KiB
Nix
59 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.4.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ROCm-Developer-Tools";
|
|
repo = "ROCgdb";
|
|
rev = "rocm-${finalAttrs.version}";
|
|
hash = "sha256-DORPvfon32+rIk+YcO9LlUefNvvC7trmiTswg9MMuIs=";
|
|
};
|
|
|
|
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-Developer-Tools/ROCgdb";
|
|
license = with licenses; [ gpl2 gpl3 bsd3 ];
|
|
maintainers = teams.rocm.members;
|
|
platforms = platforms.linux;
|
|
};
|
|
})
|