I have made a nix Flake to build a Golang module. It uses a PostgreSQL database. Is it possible to use flake to install PostgreSQL like this using nix flake. The following code runs and builds the Go module.
irmago= buidGoModule {
pname = "irma";
version = "0.8.0"
BuiltInputs =[postgresql]
... and so on
The flake is building fine, and the Irma executable is working. However, the PostgreSQL instance is not installed. it is possible to install PostgreSQL and create a database through the same nix flake so that the complete process (Build IRMA, install PostgreSQL, create a database in it, and then perform connection test) is done in one command. However, as a first step, I am trying to install just PostgreSQL which is not happening.