mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 11:34:13 +00:00
gdb-dashboard: init at 0.17.3 (#378042)
This commit is contained in:
commit
5f3540778e
50
pkgs/by-name/gd/gdb-dashboard/package.nix
Normal file
50
pkgs/by-name/gd/gdb-dashboard/package.nix
Normal file
@ -0,0 +1,50 @@
|
||||
{
|
||||
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
|
||||
'';
|
||||
|
||||
# there are no tests as this is a wrapper
|
||||
|
||||
meta = {
|
||||
description = "Modular visual interface for GDB in Python";
|
||||
homepage = "https://github.com/cyrus-and/gdb-dashboard";
|
||||
downloadPage = "https://github.com/cyrus-and/gdb-dashboard";
|
||||
changelog = "https://github.com/cyrus-and/gdb-dashboard/releases/tag/${finalAttrs.version}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ ethancedwards8 ];
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user