R
Railway2y ago
Shah

Unable to build: missing -lpq

I've got a rust app that uses postgres, my nixpacks.toml has the following
[phases.build]
nixPkgs = ['libpqxx']
[phases.build]
nixPkgs = ['libpqxx']
And I get the following error
cannot find -lpq: No such file or directory
cannot find -lpq: No such file or directory
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
Percy
Percy2y ago
Project ID: d7c966b3-07dd-4a31-9cb9-82de5002e54f
Percy
Percy2y ago
⚠️ experimental feature
Shah
Shah2y ago
d7c966b3-07dd-4a31-9cb9-82de5002e54f
nebula
nebula2y ago
change it to nixLibs
Shah
Shah2y ago
I'll try that Nah, same error 😦 Solved, phases.build needed to include nixPkgs = ["postgresql"]
Want results from more Discord servers?
Add your server