Unable to build: missing -lpq
I've got a rust app that uses postgres, my nixpacks.toml has the following
And I get the following error
Can anyone assist with this? I got around it previously by simply writing my own Dockerfile, but I wanted to see if I could use the nixpacks toml instead
5 Replies
Project ID:
d7c966b3-07dd-4a31-9cb9-82de5002e54f
You might find these helpful:
- Error when building my Rust app
- psycopg2 Switching from heroku buildpacks to nix builds
⚠️ experimental feature
d7c966b3-07dd-4a31-9cb9-82de5002e54f
change it to
nixLibs
I'll try that
Nah, same error 😦
Solved, phases.build needed to include
nixPkgs = ["postgresql"]