Ask coding questions

← Back to all posts
Nix Isn't Working
h
UCYT5040

My nix isn't working.

replit.nix

shell

I'd also like to mention that the nix package list says php is on v7.4.

Voters
UCYT5040
Comments
hotnewtop
Highwayman

if the base nix image already has its own php command, then bash is just finding their command first, because it's presented earlier in the $PATH environment variable. The cows not being present is probably just because Replit has an older and no longer up-to-date cache. You can fix that by just executing kill 1 in the terminal in order to force a reboot and force a reload of the nix store.

UCYT5040

@Highwayman I tried killing it and using php73, still not working.

Highwayman

have you tried taking a look at your path yet? I had this problem with gcc-11.1.0 earlier and that helped..
@UCYT5040