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
Percy
Percy15mo ago
Project ID: 1b6c285c-5a60-46bd-bb8e-850090092532
Brody
Brody15mo ago
@interstellartaco is our php guy
mr. Nermin
mr. Nermin15mo ago
@Brody can I ask him directly?
Brody
Brody15mo ago
he will show up when he has the time please do not ping
mr. Nermin
mr. Nermin15mo ago
ok sure thing. Thank you very much @Brody
HamletS
HamletS15mo ago
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)
Brody
Brody15mo ago
you should be doing that kind of configuration in a nixpacks.toml file, as im sure thats the wrong syntax for the variable
root
root15mo ago
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?
mr. Nermin
mr. Nermin15mo ago
@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.
root
root15mo ago
What's the package called?
mr. Nermin
mr. Nermin15mo ago
IT is called php82Extensions.gd and its used for connecting laravel to aws S3 to upload files to the bucket.
root
root15mo ago
Alright, then this should work
mr. Nermin
mr. Nermin15mo ago
Ok i will try thank you very much @interstellartaco
Want results from more Discord servers?
Add your server