Add support for Nix#39
Merged
Merged
Conversation
Before this change, the Symfony CLI was not able to find all PHP versions I installed on my machine through Nix. With this PR, all my PHP versions are now correctly discovered: ``` symfony-cli on main via 🐳 orbstack via 🐹 v1.26.4 took 2s ➜ go build symfony-cli on main via 🐳 orbstack via 🐹 v1.26.4 ➜ ./symfony-cli local:php:list +---------+------------------------------------------------------------------------+---------+-------------+-------------+---------+---------+ | Version | Directory | PHP | PHP | PHP | Server | System? | | | | CLI | FPM | CGI | | | +---------+------------------------------------------------------------------------+---------+-------------+-------------+---------+---------+ | 8.1.34 | /nix/store/0b124alj3m71nj2kz4mvh3yph729g45f-php-with-extensions-8.1.34 | bin/php | bin/php-fpm | bin/php-cgi | PHP FPM | | | 8.2.31 | /nix/store/h4q20jqavc40gcy8nlxn7r826b15cmy6-php-with-extensions-8.2.31 | bin/php | bin/php-fpm | bin/php-cgi | PHP FPM | | | 8.3.31 | /nix/store/xxzf9zv1rv95bjjmbrdkc2hyb3h4lb31-php-with-extensions-8.3.31 | bin/php | bin/php-fpm | bin/php-cgi | PHP FPM | | | 8.4.22 | /nix/store/d8wzkxvwhp0vd8aizgrk8aq0cykcsgik-php-with-extensions-8.4.22 | bin/php | bin/php-fpm | bin/php-cgi | PHP FPM | * | | 8.5.7 | /nix/store/7grs0mlr1nxjxjmw5iyk3mqpfsr7lwi6-php-with-extensions-8.5.7 | bin/php | bin/php-fpm | bin/php-cgi | PHP FPM | | +---------+------------------------------------------------------------------------+---------+-------------+-------------+---------+---------+ ```
fabpot
approved these changes
Jul 3, 2026
Contributor
|
Thank you @Kocal. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Before this change, the Symfony CLI was not able to find all PHP versions I installed on my machine through Nix.
With this PR, all my PHP versions are now correctly discovered: