I cannot for the life of me find the package that has `pg_config`

Hi everyone,

Does anyone know where to get the pg_config executable from? I am trying to test a python application and create a flake.nix but for the life of me I cannot find where this executable could be located… I have tried the following package:

  • postgresql
  • libpq
  • libpq.dev (same package, different derivation I think)
  • postgresql_15[.dev]

Any help would be greatly appreciated here as I have reached my end and my brain hurts lol.

I have even tried writing some various enterShell hooks to attempt to find it with no luck…

THANK YOU! Out of curiosity, what is the best way to find this information for next time?

Out of curiosity, what is the best way to find this information for next time?

Where did you look for this information?

Maybe we can put it exactly there.

I literally just searched in the nixpkgs repo for pg_config, looked through issues and code. Specifically because I’ve no idea what pg_config is :upside_down_face:

A quick grep shows that this isn’t documented in the manual, but only in the release notes which doesn’t help if you’re a new user.

Sorry, I think I ticked the documentation part in my head while reviewing the change. Will add a section to our manual.

In case you didn’t do this already here, I recommend to check if a module has a dedicated section in there. If that’s the case, it’s usually quite useful.