I am using nixOS for a little time, but coming from Ubuntu I have a hard time with binary dependencies. My problem is that I want to install psycopg2 in a virtualenv. This package is not a pure-python one and it links to postgres binaries. So when I try to install the package I get:
./psycopg/psycopg.h:31:22: fatal error: libpq-fe.h: No such file or directory
The question is - how to make the binary libs and header files available for local installations like this?