How to get a different version of a library with Nixpacks?
Hey! I'm trying to deploy a Django webapp that converts an Excel file to LaTeX code. The conversion works fine locally, but I get the following error when trying to convert during deployment:
I think that I need to specify my version of zlib to 1.2.11 to match the Lua package that is installed, but I am unsure of how to do so. I've included my railway.json file for reference.
{
"$schema": "https://schema.up.railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS",
"nixpacksPlan": {
"phases": {
"setup": {
"aptPkgs": ["...", "texlive-full", "wget"],
"cmds": [
"wget https://zlib.net/fossils/zlib-1.2.11.tar.gz && tar -xzf zlib-1.2.11.tar.gz && cd zlib-1.2.11 && ./configure && make && sudo make install"
]
}
}
}
},
"deploy": {
"startCommand": "python manage.py migrate && python manage.py collectstatic --noinput && gunicorn layoutGenerator.wsgi",
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}
Service ID: bc0601b0-5427-4902-accd-52ebac13d6f2
3 Replies