Installing php-gd extension
Is there a way for me to use Nixpacks to install php-gd in the setup stage of the build process. Or even better is there a way to install additional packages in Railway beside Nixpacks
Project ID: 1b6c285c-5a60-46bd-bb8e-850090092532
13 Replies
Project ID:
1b6c285c-5a60-46bd-bb8e-850090092532
@interstellartaco is our php guy
@Brody can I ask him directly?
he will show up when he has the time
please do not ping
ok sure thing. Thank you very much @Brody
There is truly an option, but I don't know if it is working since for me isn't.
It is the NIXPACKS_PCKGS=["...","name of the nix package you want"]
The ... Is for all the packages by default de project require
And the others packages you want you can search it in the nix repositories and added to this argument.
But again, I tried this approach in order to install mongoDB drivers for mi php/Laravel project and it still not working.
I hope you have a better result, you can search more about this in the nixpacks documentation.
(Edit: also if you need there is a very similar approach but with apt-ger for apt packages)
you should be doing that kind of configuration in a nixpacks.toml file, as im sure thats the wrong syntax for the variable
Add
"ext-gd": "*"
to your composer.json
.
Hmm, actually, it doesn't seem to be available in the Nix registry - where is this extension from?@interstellartaco there is a package in nixpacks packages but when i try to opt in the builder stages IT doesn’t build as IT should.
What's the package called?
IT is called php82Extensions.gd and its used for connecting laravel to aws S3 to upload files to the bucket.
Alright, then this should work
Ok i will try thank you very much @interstellartaco