Running binary installers in install phase

I am trying to build a nix flake for TI’s Code Composer Studio which has a binary installer.
That installer extracts some shell scripts that has some hardcoded paths inside.
So far I was able to run the installer in steam-run and it works but I can not run that in the flake as it can not find libcrypt.
Patching the installer binary gets me to the scripts with the hardcoded paths, which I can not path as they are extracted and executed from the installer.
What would be the best way to work around this?

You might need libxcrypt-legacy.

Thanks that helped, I had to add some other libraries