How do I get Nixpacks to include Java in the build?

I'm a newbie to basically everything to do with web dev so please bear with me if this is a stupid question! I've built a web app that uses language_tool_python which is itself a wrapper for a java library. so to run it, I need Java installed. I've tried Heroku, and it allows me to include a java buildpack along with python. but I can't figure out how to do this in Railway. I hope the question I'm asking makes sense!
4 Replies
Percy
Percy16mo ago
Project ID: N/A
firefiber
firefiber16mo ago
N/A
Brody
Brody16mo ago
try adding this as a nixpacks.toml file to your project folder
[phases.setup]
nixPkgs = ["...", "jdk17"]
[phases.setup]
nixPkgs = ["...", "jdk17"]
firefiber
firefiber16mo ago
thank you, will try this once i'm back at my PC!
Want results from more Discord servers?
Add your server