Comments (7)
We found PHP specified via homebrew was taking over because it was in a $PATH first. Issue solved :)
from nix-shell.
Hi!
I will update the readme tomorrow, thanks for letting me know about this little quirk.
from nix-shell.
Dear @ostrolucky ,
I tested nix shell github:loophp/nix-shell#php82
and it works does the job.
Can you try again and tell me ?
Thanks!
from nix-shell.
This is how it behaves for me https://asciinema.org/a/NPNWzv96R2MYu2paaz0nEPRYY
from nix-shell.
I see.
I think everything is working fine.
- When you do
nix shell github:loophp/nix-shell#php82
, you enter a shell where all the PHP tools are available (php, composer, gnu make, symfony, etc etc) - When you do
nix develop github:loophp/nix-shell#php82
you enter in the same shell, but it's using by defaultbash
.
One way to verify if it works, you could do just: php -v
and see if your version of PHP is PHP 8.2.1.
Let me know the outcome.
from nix-shell.
➜ Documents nix shell github:loophp/nix-shell#php82
➜ Documents php -v
PHP 8.0.27 (cli) (built: Jan 12 2023 04:00:24) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.27, Copyright (c) Zend Technologies
with Xdebug v3.2.0, Copyright (c) 2002-2022, by Derick Rethans
with Zend OPcache v8.0.27, Copyright (c), by Zend Technologies
➜ Documents which php
/opt/homebrew/opt/[email protected]/bin/php
➜ Documents
from nix-shell.
Ho nose.
I wish I could have a Mac to test this out.
Maybe @stephank may help here ?
from nix-shell.
Related Issues (9)
- Dependency Dashboard
- defaultExtensions are way too fat, resulting in long installation times HOT 19
- Infer default PHP version from composer.json HOT 9
- Can't use nix-shell.api.makePhp to build a devShell with php5.6 HOT 4
- Importing extensions from composer.json/lock does not work anymore while building a devShell HOT 3
- Error while launching nix shell : The foobar extension does not exist, ignoring. HOT 3
- Grep version from busybox issue with OhMyZsh grep-alias cache HOT 3
- Nix experimental features HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nix-shell.