some time now here, using NixOS, and I am migrating more and more over to the new OS. I am a Web and Software Developer, using JetBrains IDEs. Some languages, like PHP and Java, require setting up an interpreter. I am working on a PHP project right now, so this is what I am trying to set up.
I installed the PHP package. However, the IDE is not able to find it. Is there anything I am missing? At which path would PHP be found?
You should create a shell with PHP, something like: nix shell nixpkgs#php83, then only start Intellij from the shell so that it can have access to PHP.
I have found it… after clicking on the folder icon next to it and then on the plus, I was able to add it. It is located at /run/current-system/sw/bin/php.