R
Railway11mo ago
rose

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
Percy
Percy11mo ago
Project ID: bc0601b0-5427-4902-accd-52ebac13d6f2
rose
rose11mo ago
Sorry, to specify the error is at the bottom of the attached Deployment Log.
Brody
Brody11mo ago
try this
{
"$schema": "https://schema.up.railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS",
"nixpacksPlan": {
"phases": {
"setup": {
"aptPkgs": ["...", "texlive-full", "wget"]
},
"zlib": {
"dependsOn": ["setup"],
"nixPkgsArchive": "1832678aeeb7f6aafc156cd653a3615737624776",
"nixLibs": ["...", "zlib"]
}
}
}
},
"deploy": {
"startCommand": "python manage.py migrate && python manage.py collectstatic --noinput && gunicorn layoutGenerator.wsgi",
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}
{
"$schema": "https://schema.up.railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS",
"nixpacksPlan": {
"phases": {
"setup": {
"aptPkgs": ["...", "texlive-full", "wget"]
},
"zlib": {
"dependsOn": ["setup"],
"nixPkgsArchive": "1832678aeeb7f6aafc156cd653a3615737624776",
"nixLibs": ["...", "zlib"]
}
}
}
},
"deploy": {
"startCommand": "python manage.py migrate && python manage.py collectstatic --noinput && gunicorn layoutGenerator.wsgi",
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}
Want results from more Discord servers?
Add your server