I added to replit.nix:
pkgs.alsa-lib
pkgs.openssl_1_1
pkgs.glibc
But when I try to do the same in a more complex app with more requirements, I get this error:
/usr/bin/env: symbol lookup error: /nix/store/4nlgxhb09sdr51nc9hdm8az5b08vzkgx-glibc-2.35-163/lib/libc.so.6: undefined symbol: _dl_fatal_printf, version GLIBC_PRIVATE
If you mean like rebooting the repl, you could try kill 1, but if you mean resetting the replit.nix file, then you would have to copy an un-edited one from another repl.
No, I meant deleting the whole environment and rebuilding from the replix.nix and requirements.txt. The order of package install may have messed it up, or I may have manually installed packages.
requirements.txt is also listed under Packager Files, I guess they added support, or maybe I used pip to install manually.
Anyway I would like to reset the environment, I need to fork??
if you go to the shell and you use nix or pip to install packages, they get installed into the repl, I guess into the venv folder (not sure)
I want to reset that as if I just created the repl
But unfortunately I still get the error running the app
/usr/bin/env: symbol lookup error: /nix/store/4nlgxhb09sdr51nc9hdm8az5b08vzkgx-glibc-2.35-163/lib/libc.so.6: undefined symbol: _dl_fatal_printf, version GLIBC_PRIVATE
are there any differences in the .replit/replit.nix config between the app and the repl you provided? Try without the glibc package since a version of libc.so.6 is given by dependency of stdenv.cc anyhow.