dbb2eae65b
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/pwndbg/versions
63 lines
1.2 KiB
Nix
63 lines
1.2 KiB
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
, makeWrapper
|
|
, gdb
|
|
, future
|
|
, isort
|
|
, psutil
|
|
, pycparser
|
|
, pyelftools
|
|
, python-ptrace
|
|
, ROPGadget
|
|
, six
|
|
, unicorn
|
|
, pygments
|
|
, }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "pwndbg-${version}";
|
|
version = "2019.01.25";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pwndbg";
|
|
repo = "pwndbg";
|
|
rev = version;
|
|
sha256 = "0k7n6pcrj62ccag801yzf04a9mj9znghpkbnqwrzz0qn3rs42vgs";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
propagatedBuildInputs = [
|
|
future
|
|
isort
|
|
psutil
|
|
pycparser
|
|
pyelftools
|
|
python-ptrace
|
|
ROPGadget
|
|
six
|
|
unicorn
|
|
pygments
|
|
];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/share/pwndbg
|
|
cp -r *.py pwndbg $out/share/pwndbg
|
|
makeWrapper ${gdb}/bin/gdb $out/bin/pwndbg \
|
|
--add-flags "-q -x $out/share/pwndbg/gdbinit.py"
|
|
'';
|
|
|
|
preFixup = ''
|
|
sed -i "/import sys/a import sys; sys.path[0:0] = '$PYTHONPATH'.split(':')" \
|
|
$out/share/pwndbg/gdbinit.py
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Exploit Development and Reverse Engineering with GDB Made Easy";
|
|
homepage = http://pwndbg.com;
|
|
license = licenses.mit;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ mic92 ];
|
|
};
|
|
}
|