forked from lix-project/hydra
d9d58b7055
Using `pg_ctl status` is more reliable than relying checking an open port via netcat.
16 lines
385 B
Nix
16 lines
385 B
Nix
{ foreman, mkShell, hydra, postgresql95 }:
|
|
{ doCheck ? true }:
|
|
mkShell {
|
|
buildInputs = [
|
|
foreman (hydra.overrideAttrs (_: { inherit doCheck; })) postgresql95
|
|
];
|
|
|
|
shellHook = ''
|
|
export HYDRA_HOME="src/"
|
|
mkdir -p .hydra-data
|
|
export HYDRA_DATA="$(pwd)/.hydra-data"
|
|
export HYDRA_DBI='dbi:Pg:dbname=hydra;host=localhost;port=64444'
|
|
|
|
exec foreman start
|
|
'';
|
|
}
|