portable: fix ipython autocompletion (#2739)

pull/2741/head
patryk4815 10 months ago committed by GitHub
parent e39ddb0ac4
commit dc14253061
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

Loading…
Cancel
Save