diff --git a/nix/portable.nix b/nix/portable.nix index feb982888..3ba7380e1 100644 --- a/nix/portable.nix +++ b/nix/portable.nix @@ -178,6 +178,9 @@ let # copy extra files cp -rf ${lib.getLib pkgs.ncurses}/share/terminfo/ $out/pwndbg/share/ + # fix ipython autocomplete + cp -rf ${pwndbgVenv}/lib/${python3.libPrefix}/site-packages/parso/python/*.txt $out/pwndbg/lib/${python3.libPrefix}/site-packages/parso/python/ + # fix python "subprocess.py" to use "/bin/sh" and not the nix'ed version, otherwise "gdb-pt-dump" is broken sed -i 's@/nix/store/.*/bin/sh@/bin/sh@' $out/pwndbg/lib/${python3.libPrefix}/subprocess.py