将postgresql-libpq添加到我的项目的 cabal 文件后,堆栈构建失败并显示以下内容:
Configuring postgresql-libpq-0.9.1.1...
setup: The program 'pg_config' is required but it could not be found.
我在 Nixos 上,并且pg_config已安装并在我的 PATH 上:
$ whereis pg_config
pg_config: /nix/store/5bc6hzqkyw8dpi91sqznd3ik42mllwyz-system-path/bin/pg_config
我正在使用堆栈 1.0.2,似乎即使在不稳定通道上的nixos-rebuild switch --upgrade之后它也不会更新。这是我的错误还是其他原因?