I am trying to run psql
with nix run
. The postgresql package in nixpkgs offers the psql
binary, but I can’t figure out the correct incantation.
After reading some other answers on GitHub and this forum I tried nix run nixpkgs#postgresql -c psql
but -c
is now an unrecognised option.
Is this possible? Or must I use nix shell
instead?