-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ethan Carter Edwards <[email protected]>
- Loading branch information
1 parent
b8187ec
commit b0ea9bc
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ]; | ||
}; | ||
}) |