Skip to content

Commit

Permalink
gdb-dashboard: init at 0.17.3
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Carter Edwards <[email protected]>
  • Loading branch information
ethancedwards8 committed Jan 30, 2025
1 parent b8187ec commit b0ea9bc
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions pkgs/by-name/gd/gdb-dashboard/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
lib,
stdenv,
fetchFromGitHub,
gdb,
makeWrapper,
python3Packages,
}:

stdenv.mkDerivation (finalAttrs: {
name = "gdb-dashboard";
version = "0.17.3";

src = fetchFromGitHub {
owner = "cyrus-and";
repo = "gdb-dashboard";
tag = "v${finalAttrs.version}";
hash = "sha256-x3XcAJdj2Q8s+ZkIBHpGZvCroedPzBmqt5W9Hc1FL7s=";
};

nativeBuildInputs = [ makeWrapper ];

propagatedBuildInputs = [ python3Packages.pygments ];

installPhase = ''
runHook preInstall
mkdir -p $out/share/gdb-dashboard
cp -r .gdbinit $out/share/gdb-dashboard/gdbinit
makeWrapper ${gdb}/bin/gdb $out/bin/gdb-dashboard \
--add-flags "-q -x $out/share/gdb-dashboard/gdbinit"
p=$(toPythonPath ${python3Packages.pygments})
sed -i "/import os/a import os; import sys; sys.path[0:0] = '$p'.split(':')" \
$out/share/gdb-dashboard/gdbinit
runHook postInstall
'';

meta = {
description = "Modular visual interface for GDB in Python";
homepage = "https://github.com/cyrus-and/gdb-dashboard";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ethancedwards8 ];
};
})

0 comments on commit b0ea9bc

Please sign in to comment.