nixos-config/pkgs/gef/default.nix

22 lines
514 B
Nix
Raw Normal View History

2021-02-17 03:18:37 +00:00
{ stdenv, fetchFromGitHub, makeWrapper, gdb }:
let
src = fetchFromGitHub {
owner = "hugsy";
repo = "gef";
2021-07-09 01:04:04 +00:00
rev = "2021.07";
sha256 = "zKn3yS9h8bzjsb/iPgNU8g5IgXFBaKvM7osTqzzv16s=";
2021-02-17 03:18:37 +00:00
};
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'"
'';
}