Trouble installing Erlang "configure: error: No curses library functions found"

Yes, sorry i should have followed up.

The magic incantation is the following:

$ nix-shell --run "bash -c 'mise use erlang@25.3.2.12'" -p gcc -p mise -p ncurses5 -p autoconf -p automake -p openssl

Update: on Mac, I had to make sure that openssl was installed via homebrew (I was previously trying to remove homebrew entirely, but nix doesn’t seem to put dev headers in the path) and I had to do the following

$ nix-shell -p ncurses5 darwin.apple_sdk.frameworks.AGL darwin.apple_sdk.frameworks.Carbon darwin.apple_sdk.frameworks.Cocoa darwin.apple_sdk.frameworks.WebKit --run "bash -c mise use erlang@27.0 --verbose'"