mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
21 lines
521 B
Nix
21 lines
521 B
Nix
{ stdenv, fetchFromGitHub, makeWrapper, gdb }:
|
|
let
|
|
src = fetchFromGitHub {
|
|
owner = "hugsy";
|
|
repo = "gef";
|
|
rev = "2021.04";
|
|
sha256 = "sha256-nxwVaUFtFlDFWCUpXPh4FOuqMJ+COsOZv9IyKZ6dvg8=";
|
|
};
|
|
|
|
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'"
|
|
'';
|
|
}
|