Build failing with PostgreSQL dev package error in Nixpacks configuration
yoonjinsoo
TRIALOP

a year 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 postgresql15 postgresql16.dev python39 python39

Build/Deploy logs:
[Attached full error log from previous deployment]

Current configuration:

  1. 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:

  1. Modified nixpacks.toml with various PostgreSQL package combinations

  2. Added system-level dependencies through aptPkgs

  3. Tried different PostgreSQL version specifications

GitHub repo/code:
[Your repository URL here]

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

0 Replies

Loading...