Build failing with PostgreSQL dev package error in Nixpacks configuration
yoonjinsoo
TRIALOP
2 years ago
Description of the issue:
- Build is failing during the Nixpacks setup phase
- Error occurs when trying to install PostgreSQL development packages
- Multiple nixpacks.toml configurations attempted without success
Error message:
error: attribute 'dev' missing
at /app/.nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix:19:31:
gcc gcc postgresql_15 postgresql_16.dev python39 python39
Build/Deploy logs:
[Attached full error log from previous deployment]
Current configuration:
- nixpacks.toml setup:
- Using Python 3.9
- PostgreSQL integration
- Basic gcc compiler
Environment:
- Railway deployment platform
- PostgreSQL addon enabled
- Custom start command: "alembic upgrade head && uvicorn app.main:app --host 0.0.0.0 --port 8080"
Attempted solutions:
- Modified nixpacks.toml with various PostgreSQL package combinations
- Added system-level dependencies through aptPkgs
- Tried different PostgreSQL version specifications
GitHub repo/code:
[Your repository URL here]
ⓘ Deployment information is only viewable by project members and Railway employees.
0 Replies