python3Packages.pwntools: Allow to use any debugger

Signed-off-by: Pamplemousse <xav.maso@gmail.com>
This commit is contained in:
Pamplemousse 2020-08-20 10:14:44 -07:00 committed by Jon
parent b1051e3595
commit b6fc6b38b7
3 changed files with 11 additions and 2 deletions

@ -1,8 +1,10 @@
{ stdenv
, buildPythonPackage
, debugger
, fetchPypi
, isPy3k
, Mako
, makeWrapper
, packaging
, pysocks
, pygments
@ -58,10 +60,15 @@ buildPythonPackage rec {
doCheck = false; # no setuptools tests for the package
postFixup = ''
mkdir -p "$out/bin"
makeWrapper "${debugger}/bin/${stdenv.lib.strings.getName debugger}" "$out/bin/pwntools-gdb"
'';
meta = with stdenv.lib; {
homepage = "http://pwntools.com";
description = "CTF framework and exploit development library";
license = licenses.mit;
maintainers = with maintainers; [ bennofs kristoff3r ];
maintainers = with maintainers; [ bennofs kristoff3r pamplemousse ];
};
}

@ -26948,6 +26948,8 @@ in
pyload = callPackage ../applications/networking/pyload {};
pwntools = with python3Packages; toPythonApplication pwntools;
uae = callPackage ../misc/emulators/uae { };
fsuae = callPackage ../misc/emulators/fs-uae { };

@ -7468,7 +7468,7 @@ in {
packet-python = callPackage ../development/python-modules/packet-python { };
pwntools = callPackage ../development/python-modules/pwntools { };
pwntools = callPackage ../development/python-modules/pwntools { debugger = pkgs.gdb; };
ROPGadget = callPackage ../development/python-modules/ROPGadget { };