[plugins] Ensure plugin packages are in nix profile #1367
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
While working on #1361 I noticed that we were not installing plugin packages (usually just custom flakes) to profile. This means in cases like the PHP plugin, the binary int he profile was wrong because it did not include extensions. Everything was still working as expected because bin wrappers would point to the correct binary but this is bad for 2 reasons:
This PR fixes it by ensuring plugin packages are installed. I also refactored some function names that were out of date.
TODO: We currently output text when installing plugin packages that is not very user friendly. We could improve it.
How was it tested?
➜ devbox git:(landau/install-plugin-packages-to-profile) devbox run -c examples/development/php/php8.1 php -m | grep imagick Installing dependencies from lock file (including require-dev) Verifying lock file contents can be installed on current platform. Nothing to install, update or remove Generating autoload files imagick