Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 58 lines 1.1 kB view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, rocmUpdateScript 5, pkg-config 6, texinfo 7, bison 8, flex 9, zlib 10, elfutils 11, gmp 12, ncurses 13, expat 14}: 15 16stdenv.mkDerivation (finalAttrs: { 17 pname = "rocgdb"; 18 version = "5.4.2"; 19 20 src = fetchFromGitHub { 21 owner = "ROCm-Developer-Tools"; 22 repo = "ROCgdb"; 23 rev = "rocm-${finalAttrs.version}"; 24 hash = "sha256-DORPvfon32+rIk+YcO9LlUefNvvC7trmiTswg9MMuIs="; 25 }; 26 27 nativeBuildInputs = [ 28 pkg-config 29 texinfo # For makeinfo 30 bison 31 flex 32 ]; 33 34 buildInputs = [ 35 zlib 36 elfutils 37 gmp 38 ncurses 39 expat 40 ]; 41 42 # `-Wno-format-nonliteral` doesn't work 43 env.NIX_CFLAGS_COMPILE = "-Wno-error=format-security"; 44 45 passthru.updateScript = rocmUpdateScript { 46 name = finalAttrs.pname; 47 owner = finalAttrs.src.owner; 48 repo = finalAttrs.src.repo; 49 }; 50 51 meta = with lib; { 52 description = "ROCm source-level debugger for Linux, based on GDB"; 53 homepage = "https://github.com/ROCm-Developer-Tools/ROCgdb"; 54 license = with licenses; [ gpl2 gpl3 bsd3 ]; 55 maintainers = teams.rocm.members; 56 platforms = platforms.linux; 57 }; 58})