28 debuggerName = lib.strings.getName debugger;
30 buildPythonPackage rec {
33 format = "setuptools";
36 inherit pname version;
37 hash = "sha256-MgKFvZJmFS/bo7gd46MeYaJQdmRVB6ONhfNOGxWZjrE=";
41 # Upstream hardcoded the check for the command `gdb-multiarch`;
42 # Forcefully use the provided debugger, as `gdb` (hence `pwndbg`) is built with multiarch in `nixpkgs`.
43 sed -i 's/gdb-multiarch/${debuggerName}/' pwnlib/gdb.py
50 propagatedBuildInputs = [
71 doCheck = false; # no setuptools tests for the package
74 installShellCompletion --bash extra/bash_completion.d/shellcraft
77 postFixup = lib.optionalString (!stdenv.isDarwin) ''
79 makeWrapper "${debugger}/bin/${debuggerName}" "$out/bin/pwntools-gdb"
83 description = "CTF framework and exploit development library";
84 homepage = "https://pwntools.com";
85 changelog = "https://github.com/Gallopsled/pwntools/releases/tag/${version}";
86 license = licenses.mit;
87 maintainers = with maintainers; [ bennofs kristoff3r pamplemousse ];