mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
gef: init at 2021.01
This commit is contained in:
parent
9dcb0573bd
commit
a95e889374
1 changed files with 21 additions and 0 deletions
21
pkgs/gef/default.nix
Normal file
21
pkgs/gef/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{ stdenv, fetchFromGitHub, makeWrapper, gdb }:
|
||||||
|
let
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "hugsy";
|
||||||
|
repo = "gef";
|
||||||
|
rev = "2021.01";
|
||||||
|
sha256 = "0gw112s16pdjd5csp8ap0qq2d3bkp2s8pyhjbw4f8k0mkgy1j66i";
|
||||||
|
};
|
||||||
|
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "gef";
|
||||||
|
phases = [ "installPhase" ];
|
||||||
|
buildInputs = [ makeWrapper ];
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p "$out/bin"
|
||||||
|
makeWrapper "${gdb}/bin/gdb" "$out/bin/gef" \
|
||||||
|
--add-flags "-x ${src}/gef.py" \
|
||||||
|
--add-flags "-ex 'gef config context.clear_screen 0'"
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in a new issue