pwndbg: 2022.08.30 -> 2022.12.19
This commit is contained in:
parent
9f684b1517
commit
45f1d70101
|
@ -8,38 +8,45 @@
|
|||
|
||||
let
|
||||
pythonPath = with python3.pkgs; makePythonPath [
|
||||
capstone
|
||||
future
|
||||
isort
|
||||
psutil
|
||||
pwntools
|
||||
pycparser
|
||||
pyelftools
|
||||
python-ptrace
|
||||
ropgadget
|
||||
six
|
||||
unicorn
|
||||
pygments
|
||||
unicorn
|
||||
rpyc
|
||||
];
|
||||
binPath = lib.makeBinPath ([
|
||||
python3.pkgs.pwntools # ref: https://github.com/pwndbg/pwndbg/blob/2022.12.19/pwndbg/wrappers/checksec.py#L8
|
||||
] ++ lib.optionals stdenv.isLinux [
|
||||
python3.pkgs.ropper # ref: https://github.com/pwndbg/pwndbg/blob/2022.12.19/pwndbg/commands/ropper.py#L30
|
||||
python3.pkgs.ROPGadget # ref: https://github.com/pwndbg/pwndbg/blob/2022.12.19/pwndbg/commands/rop.py#L32
|
||||
]);
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "pwndbg";
|
||||
version = "2022.08.30";
|
||||
version = "2022.12.19";
|
||||
format = "other";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pwndbg";
|
||||
repo = "pwndbg";
|
||||
rev = version;
|
||||
sha256 = "sha256-rMdpNJonzbHyTXbnr6MtlVUmfAfLiCHaVSzuQRhtVpE=";
|
||||
sha256 = "sha256-pyY2bMasd6GaJZZjLF48SvkKUBw3XfVa0g3Q0LiEi4k=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/pwndbg
|
||||
cp -r *.py pwndbg $out/share/pwndbg
|
||||
cp -r *.py pwndbg gdb-pt-dump $out/share/pwndbg
|
||||
chmod +x $out/share/pwndbg/gdbinit.py
|
||||
makeWrapper ${gdb}/bin/gdb $out/bin/pwndbg \
|
||||
--add-flags "-q -x $out/share/pwndbg/gdbinit.py" \
|
||||
--prefix PATH : ${binPath} \
|
||||
--set NIX_PYTHONPATH ${pythonPath}
|
||||
'';
|
||||
|
||||
|
@ -48,8 +55,8 @@ in stdenv.mkDerivation rec {
|
|||
homepage = "https://github.com/pwndbg/pwndbg";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ mic92 ];
|
||||
# never built on aarch64-darwin since first introduction in nixpkgs
|
||||
maintainers = with maintainers; [ mic92 patryk4815 ];
|
||||
# not supported on aarch64-darwin see: https://inbox.sourceware.org/gdb/3185c3b8-8a91-4beb-a5d5-9db6afb93713@Spark/
|
||||
broken = stdenv.isDarwin && stdenv.isAarch64;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue